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

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

            return(Ok(result));
        }