public List <Transaction> GetAllTransactions() { return(_transactionRepo.GetAllTransactions().ToList()); }
public ActionResult <IEnumerable <TransactionReadDto> > GetAllTransactions() { var transacionItem = _repository.GetAllTransactions(); return(Ok(_mapper.Map <IEnumerable <TransactionReadDto> >(transacionItem))); }