public async Task <IActionResult> DeleteDebt(long id) { var debt = await _respository.Get(id); if (debt == null) { return(NotFound()); } _respository.Delete(debt); await _respository.Save(); return(NoContent()); }
public override void Delete(Debt item) { _debtRepository.Delete(item); }