Esempio n. 1
0
        public IActionResult Schedule()
        {
            var viewModel = new ScheduleViewModel()
            {
                Date           = DateTime.Today,
                CalendarMatrix = commonSerivce.GetCalendarMatrix(DateTime.Today)
            };

            return(View(viewModel));
        }
Esempio n. 2
0
        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));
        }