public UserResponse GetUserByUserId(UserRequest UserInfo) { UserResponse UserResponse = new UserResponse(); Epi.Web.Interfaces.DataInterfaces.IUserDao IUserDao = new EF.EntityUserDao(); Epi.Web.BLL.User Implementation = new Epi.Web.BLL.User(IUserDao); var CurrentUser = Implementation.GetUserByUserId(Mapper.ToUserBO(UserInfo.User), Mapper.ToBusinessObject(UserInfo.Organization)); UserResponse.User = new List <UserDTO>(); UserResponse.User.Add(Mapper.ToUserDTO(CurrentUser)); return(UserResponse); }
public UserAuthenticationResponse GetUser(UserAuthenticationRequest request) { var response = new UserAuthenticationResponse(); Epi.Web.BLL.User userImplementation = new Epi.Web.BLL.User(_userDao); UserBO UserBO = request.User.ToUserBO(); UserBO result = userImplementation.GetUserByUserId(UserBO); if (result != null) { response.User = result.ToUserDTO(); } return(response); }