public async Task <ActionResult <IEnumerable <WorkLoad> > > GetWorkLoad([FromRoute] long id) { try { return(Ok(await _debtRepository.GetAll())); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public List <DebtListViewModel> GetList() { return(_debtRepository.GetAll()); }
public IEnumerable <Debt> GetDebtsByCustomer(Guid id) { var debts = _debtRepository.GetAll().Where(x => x.CustomerId == id).ToList(); return(debts); }