예제 #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));
        }