public static void MapToEntity(this MultipleBookingRuleModel model, MultipleBookingRuleConfiguration rule)
        {
            if (model.Id.HasValue)
            {
                rule.Id = model.Id.Value;
            }

            rule.EventId = model.EventId.Value;
            rule.NumberOfParallelBookings = model.NumberOfParallelBookings.Value;
        }
 public static void MapFromEntity(this MultipleBookingRuleModel model, MultipleBookingRuleConfiguration rule)
 {
     model.Id      = rule.Id;
     model.EventId = rule.EventId;
     model.NumberOfParallelBookings = rule.NumberOfParallelBookings;
 }