Esempio n. 1
0
        public IActionResult Types()
        {
            TypesView model = new TypesView();

            model.Types = _calendarService.GetAllCalendarItemTypesForDepartment(DepartmentId);

            return(View(model));
        }
Esempio n. 2
0
        public async Task <IActionResult> Types()
        {
            TypesView model = new TypesView();

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

            return(View(model));
        }