示例#1
0
        public async Task <IActionResult> Post(
            [FromBody] PaymentInfo value)
        {
            try
            {
                var fileName = Path.Combine(Variables.CurrentFolder
                                            , Variables.PaymentOutputFolder
                                            , Variables.PaymentOutputFileName);

                var paymentBusiness = new PaymentBusiness();

                await paymentBusiness.SaveToOutput(_output, fileName, value);

                return(Ok(value));
            }
            catch (Exception ex)
            {
                return(NotFound());
            }
        }