コード例 #1
0
        public async Task <Department> GetDepartmentForUserAsync(string userName)
        {
            var department = await _departmentRepository.GetDepartmentForUserByUsernameAsync(userName);

            return(department);

            //if (department == null)
            //	return null;

            //return FillAdminUsers(department);
        }
コード例 #2
0
 public async Task <Department> GetDepartmentForUserAsync(string userName)
 {
     return(await _departmentRepository.GetDepartmentForUserByUsernameAsync(userName));
 }