Пример #1
0
        public IActionResult Types()
        {
            TypesView model = new TypesView();

            model.Types = _calendarService.GetAllCalendarItemTypesForDepartment(DepartmentId);

            return(View(model));
        }
Пример #2
0
        public async Task <IActionResult> Types()
        {
            TypesView model = new TypesView();

            model.Types = await _calendarService.GetAllCalendarItemTypesForDepartmentAsync(DepartmentId);

            return(View(model));
        }