コード例 #1
0
        public static void MapToEntity(this MinimumDateRuleModel model, MinimumDateRuleConfiguration rule)
        {
            if (model.Id.HasValue)
            {
                rule.Id = model.Id.Value;
            }

            rule.Date = DateTimeUtility.NullableDateTimeFor(model.Date);
            rule.Days = model.Days;
        }
コード例 #2
0
 public static void MapFromEntity(this MinimumDateRuleModel model, MinimumDateRuleConfiguration rule)
 {
     model.Id   = rule.Id;
     model.Date = rule.Date.ToString("dd.MM.yyyy");
     model.Days = rule.Days;
 }