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)); }