常用方法
常用方法
常用方法
常用方法
public IActionResult Index(int year, int month) { var calendar = _calendarRepository .GenarateCalendar(year, month); var model = new CalendarResponseModel(); model.Month = calendar; model.PrevNextMonth = new PrevNextMonthModel() { Date = new DateTime(year, month, 1) }; return(View(model)); }