public async Task <ActionResult <Debt> > GetDebt(long id) { var debt = await _respository.Get(id); if (debt == null) { return(NotFound()); } return(debt); }
public override Debt Get(long id) { return(_debtRepository.Get(id)); }