public IActionResult Schedule() { var viewModel = new ScheduleViewModel() { Date = DateTime.Today, CalendarMatrix = commonSerivce.GetCalendarMatrix(DateTime.Today) }; return(View(viewModel)); }
public IActionResult Schedule() { var specializations = doctorService.GetSpecializations(); var viewModel = new ScheduleViewModel() { Date = DateTime.Today, CalendarMatrix = commonSerivce.GetCalendarMatrix(DateTime.Today), Specializations = specializations, SpecializationId = specializations.First().Value }; return(View(viewModel)); }