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

            return(View(viewModel));
        }
Exemplo 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));
        }