DomainModel.Rate.Create C# (CSharp) Method

Create() static private method

static private Create ( RateType type ) : Rate
type RateType
return Rate
        internal static Rate Create(RateType type)
        {
            return new Rate {Id = CombGuid.NewGuid(), RateTypeId = type.Id};
        }
    }

Usage Example

コード例 #1
0
        public Rate AddRate(RateType type)
        {
            Rate rate = Rate.Create(type);

            Rates.Add(rate);

            return(rate);
        }