Esempio n. 1
0
        public IReadOnlyCollection <Event> GetAll()
        {
            var list = _cache.GetCache("EventCache");

            if (list == null)
            {
                list = _repository.GetAll();
                _cache.Create("EventCache", list, 30);

                SetStatuses(list);
            }

            return(list);
        }