示例#1
0
        public async Task <IActionResult> Post([FromBody] TransactionVM trans)
        {
            try
            {
                await _depositSvc.ExecAsync(trans.Agency, trans.Number, trans.TransacionValue);

                return(Ok( ));
            }
            catch (Exception error)
            {
                return(BadRequest(new ErrorMessage(error.Message)));
            }
        }