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

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