private async Task FillRequiredViewBagData() { ViewBag.Transactions = await _transactions.GetByRange(User.Identity.Name, DateTime.Today, DateTime.Today.AddDays(1)); ViewBag.Currencies = await _currencies.GetAll(); ViewBag.Categories = await _categories.GetAll(); ViewBag.TransactionTypes = await _transactionTypes.GetAll(); }
public IEnumerable <TransactionType> GetAll() { return(_transactionTypesRepository.GetAll()); }