Пример #1
0
        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));
        }
Пример #2
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));
        }
Пример #3
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));
            }
        }