コード例 #1
0
        public static object CreateNextMonthRoutValues(this HtmlHelper helper, MonthlyReservationsViewModel model)
        {
            var year  = model.Year;
            var month = model.Month;

            if (month == 12)
            {
                year++;
                month = 1;
            }
            else
            {
                month++;
            }

            return(new { year, month, hallName = model.Hall });
        }
コード例 #2
0
 public static string FormatLocalizedMonth(this HtmlHelper helper, MonthlyReservationsViewModel model)
 {
     return($"{MonthResources[(Month)model.Month]()}, {model.Year}");
 }