Ejemplo n.º 1
0
        public async Task <ActionResult <Debt> > PostDebt([FromBody] Debt debt)
        {
            _respository.Insert(debt);
            await _service.recalculate(debt);

            await _respository.Save();

            return(CreatedAtAction(nameof(Debt), new { id = debt.Id }, debt));
        }