public async Task <Division> GetDivisionAsync(int divisionId) { Division division = _divisions.Values.FirstOrDefault(d => d.DivisionId == divisionId); if (division == null) { division = await _divisionRepository.GetDivisionAsync(divisionId); if (division != null) { _divisions.Add(DateTime.Now, division); } } return(division); }