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)); }
public IEnumerable <Customer> GetCustomer([FromQuery] UrlQuery query) { return(_customerRepo.GetAll()); }
public IEnumerable <Category> GetCategory([FromQuery] UrlQuery query) { return(_categoryRepo.GetAll()); }
public IEnumerable <InvoiceForPosting> GetInvoices([FromQuery] UrlQuery query) { var invoices = _invoiceRepo.GetAll(); return(invoices); }