public ActionResult ListItems(int year, int weekNumber = 1) { var dateA = FDIUtils.WeekDays(year, weekNumber); var toDate = dateA[0]; var endDate = dateA[6]; var dates = toDate.TotalSeconds(); var datee = endDate.TotalSeconds(); var model = new ModelDNUserCalendarItem { ListItems = _userApi.GetListCalendar(UserItem.AgencyID, dates, datee), WeeklyScheduleItems = GetListCalendar(toDate, endDate), DateStart = toDate }; return(View(model)); }