public IEnumerable <User> GetAll() { var cacheResult = cacheLogic.Get <IEnumerable <User> >(AllUsersCacheKey); if (cacheResult == null) { var users = usersDAO.GetAll().ToArray(); foreach (User user in users) { user.UserAwards = awardUsersLogic.GetAwards(user.Id); } cacheLogic.Add(AllUsersCacheKey, users); return(users); } return(cacheResult); }