public async Task <Department> GetDepartmentForUserAsync(string userName) { var department = await _departmentRepository.GetDepartmentForUserByUsernameAsync(userName); return(department); //if (department == null) // return null; //return FillAdminUsers(department); }
public async Task <Department> GetDepartmentForUserAsync(string userName) { return(await _departmentRepository.GetDepartmentForUserByUsernameAsync(userName)); }