示例#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);
        }