Beispiel #1
0
 public ReservationDateRangeViewModel(DateTime startDate, DateTime endDate, Type userType)
 {
     StartDate = startDate;
     EndDate   = endDate;
     UserType  = userType;
 }
        private static DateTime?GetDefaultStartDateTime(Type userType)
        {
            var rangeRestriction = AppSettings.GetStartDateRangeRestriction(userType);

            return(rangeRestriction == null ? (DateTime?)null : ModernizeTime(rangeRestriction.DefaultTime, rangeRestriction.DefaultDay));
        }
Beispiel #3
0
 public static RangeRestriction GetStartDateRangeRestriction(Type type)
 {
     return(ReservationRestrictions.GetValueOrDefault(type, null)?.ReservationStartTimeRestrictions);
 }