Exemple #1
0
        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));
        }