コード例 #1
0
        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));
        }
コード例 #2
0
        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));
            }
        }