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)); } }