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;
        }
 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;
 }