public IEnumerable <Transaction> FetchTransactionForDateRange(DateTime from, DateTime to) { return(_transactionDAL.Get() .Where(x => x.Date >= from && x.Date <= to) .Include(x => x.Category) .Include(x => x.PaymentMethod) .Include(x => x.TransactionType) .OrderByDescending(x => x.Date)); }
public Generic Get(string genericName) { return(generic.Get(genericName)); }
public IEnumerable <TransactionType> FetchAllTransactionTypes() { return(_transactionTypeDAL.Get()); }
public IEnumerable <Category> FetchAllCategories() { return(_categoryDAL.Get()); }
public IEnumerable <PaymentMethod> FetchAllPaymentMethods() { return(_paymentMethodDAL.Get()); }