public string ResetPasswordJson(string inputJsonStr) { job = gm.getJsonResult(inputJsonStr); try { string identify = job["Identify"].ToString(); string oldPassword = job["OldPassword"].ToString(); string newPassword = job["NewPassword"].ToString(); if (!identify.Equals("") && !oldPassword.Equals("") && !newPassword.Equals("")) { return(main.ResetPassword(identify, oldPassword, newPassword)); } else { return(gm.getStageJson(false, msg.dataError_cht)); } } catch (Exception ex) { Console.WriteLine(ex.Message); return(gm.getStageJson(false, msg.dataError_cht)); } }