Пример #1
0
        public IEnumerable <Class> GetClasses(IClassesServices classesServices)
        {
            var classes = GetValue("Classes");

            if (classes == null)
            {
                Add("Classes", classesServices.AllAlpha().ToList(), DateTimeOffset.UtcNow.AddHours(24));
                classes = GetValue("Classes");
            }
            return(classes as IEnumerable <Class>);
        }
Пример #2
0
 public IEnumerable <Class> GetClassesAlpha()
 {
     return(_classesServices.AllAlpha());
     // return _memCacher.GetClasses(_classesServices);
 }