public HttpResponseMessage CreateUser(UserEntity user) { NV7200_UserBusiness NV7200_UserBusiness = new NV7200_UserBusiness(); ResponseMessage response = NV7200_UserBusiness.AddUser(user); if (response.IsSuccess) { return(Request.CreateResponse(HttpStatusCode.OK, response.Data)); } else { return(Request.CreateResponse(HttpStatusCode.InternalServerError, response.MessageText)); } }
public HttpResponseMessage ChangePassword(ChangePasswordEntity passwordEntity) { NV7200_UserBusiness NV7200_UserBusiness = new NV7200_UserBusiness(); ResponseMessage response = NV7200_UserBusiness.ChangePassword(passwordEntity); if (response.IsSuccess) { return(Request.CreateResponse(HttpStatusCode.OK, response.Data)); } else { return(Request.CreateResponse(HttpStatusCode.InternalServerError, response.MessageText)); } }
public async Task <LoginEntity> FindUser(string userName, string password) { LoginEntity loginBO = NV7200_UserBusiness.Instance().Login(userName, password); return(loginBO); }