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

            return(debts);
        }