/// <summary> /// get all user list /// </summary> /// <returns></returns> public IList <UserDTO> GetAll() { using (_queryableUnitOfWork) { var userList = _userRepository.GetAll().ToList(); return(userList.Any() ? UserAdapter.AdaptToUserDtoList(userList) : null); } }