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 }); }
public static string FormatLocalizedMonth(this HtmlHelper helper, MonthlyReservationsViewModel model) { return($"{MonthResources[(Month)model.Month]()}, {model.Year}"); }