Пример #1
0
 public TransactionListModel GetTransactions([FromQuery] UrlQuery query)
 {
     if (query.LoadAll)
     {
         var transactions = _transactionRepo.GetByAccount(query.AccountId);
         return(new TransactionListModel {
             Transactions = transactions,
             StartingBalance = 0,
             RemainingTransactionCount = 0
         });
     }
     return(_transactionRepo.GetByAccount(query.AccountId, query.Page));
 }
Пример #2
0
 public IEnumerable <Customer> GetCustomer([FromQuery] UrlQuery query)
 {
     return(_customerRepo.GetAll());
 }
Пример #3
0
 public IEnumerable <Category> GetCategory([FromQuery] UrlQuery query)
 {
     return(_categoryRepo.GetAll());
 }
Пример #4
0
        public IEnumerable <InvoiceForPosting> GetInvoices([FromQuery] UrlQuery query)
        {
            var invoices = _invoiceRepo.GetAll();

            return(invoices);
        }