public UserDTO GetUserById(string id) { var user = _uow.Users.Find(id); if (user == null) { return(null); } var roles = GetRolesForUser(user); return(_userFactory.CreateComplex(user, roles)); }
public UserDTO GetUserById(string id) { var user = _uow.Users.Find(id); if (user == null) { return(null); } var roles = GetRolesForUser(user); return(_userFactory.CreateComplex(user, roles)); }