public IActionResult Change([FromBody] ReqChangeFee req) { var validator = new ReqChangeFeeValidator(); string validInfo = CommonUtil.Validate(req, validator); ResChargeFee_DS data = InterfaceHNUtil.ChangeFee(req); return(RetData.SuccessData(data)); }
public IActionResult GetPersonInfo([FromBody] ReqPersonInfo req) { var validator = new ReqPersonInfoValidator(); string validInfo = CommonUtil.Validate(req, validator); ResPersonInfo_DS data = InterfaceHNUtil.GetPersonInfo(req); return(RetData.SuccessData(data)); }
public JsonResult GetPersonInfo() { try { ReqPersonInfo req = GetReqObj <ReqPersonInfo>(this.HttpContext.Request.InputStream); var validator = new ReqPersonInfoValidator(); string validInfo = CommonUtil.Validate(req, validator); ResPersonInfo_DS data = InterfaceHNUtil.GetPersonInfo(req); return(RetUtil.SuccessData(data)); } catch (Exception ex) { return(RetUtil.ExceptionErr(ex.Message)); } }