Exemplo n.º 1
0
        public async Task <ActionResult <Result> > DeferPayment([FromBody] DebtDto debtToUpdate)
        {
            var result = await _debtService.DeferPayment(debtToUpdate);

            if (!result.Succeeded)
            {
                return(BadRequest(result));
            }

            return(Ok(result));
        }