Exemplo n.º 1
0
        private static RateTypeData rateType(string name)
        {
            var x = new RateTypeData {
                Code = name
            };

            return(x);
        }
        public static RateType Create(RateTypeView c)
        {
            var o = new RateTypeData {
                ID          = c?.ID,
                Name        = c?.Name,
                Code        = c?.Code,
                Description = c?.Description,
                ValidFrom   = c?.ValidFrom ?? DateTime.MinValue,
                ValidTo     = c?.ValidTo ?? DateTime.MaxValue
            };

            return(new RateType(o));
        }