示例#1
0
        public async Task <IActionResult> Index()
        {
            DepartmentGroupsModel model = new DepartmentGroupsModel();

            model.Users = await _departmentsService.GetAllUsersForDepartmentAsync(DepartmentId);

            model.Groups = await _departmentGroupsService.GetAllGroupsForDepartmentUnlimitedAsync(DepartmentId);

            model.CanAddNewGroup = await _limitsService.CanDepartmentAddNewGroup(DepartmentId);

            return(View(model));
        }