public async Task <IEnumerable <ExpenseType> > GetExpenseTypes() { const string expenseTypeKey = "ExpenseTypes"; return(await _cacheService .GetOrCreate(expenseTypeKey, async() => await _expenseTypeRepository.Get().ToListAsync())); }
public async Task <IEnumerable <ExpenseType> > GetExpenseTypes() { const string expenseTypeKey = "ExpenseTypes"; return(await _cacheService .GetOrCreate(expenseTypeKey, async() => await _expenseTypeRepository.Get().ToListAsync())); }