public ForgetPasswordRs CallForgetPassword(ForgetPasswordRq request) { string serviceUrl = ServiceURL.ipServer + ServiceURL.forgetPasswordUrl; String resJSON = CallServices.callPost(serviceUrl, request); return(JObject.Parse(resJSON).ToObject <ForgetPasswordRs>()); }
public ForgetPasswordRq getForgetPasswordRq(String email) { ForgetPasswordRq ret = new ForgetPasswordRq(); ret.email = email; return(ret); }
public UIReturn getPassword(Login input) { if (String.IsNullOrEmpty(input.username)) { return(Constants.uiErrorEmptyEmail); } if (!Validate.isEmailFormat(input.username)) { return(Constants.uiErrorInvalidEmail); } ForgetPasswordRq req = LoginService.getInstance().getForgetPasswordRq(input.username); ForgetPasswordRs res = LoginService.getInstance().CallForgetPassword(req); UIReturn ret = new UIReturn(res.header); return(ret); }