public List <Role> Find(string controller, string action)
        {
            List <Role>   list;
            var           cacheKey     = "DomurTech.Providers.RoleProvider.Find." + controller + "." + action;
            ICacheManager cacheManager = new MemoryCacheManager();

            if (!cacheManager.Exists(cacheKey))
            {
                list = GetValueFromDatabase(controller, action);
                cacheManager.Add(cacheKey, list);
            }
            else
            {
                return(cacheManager.Get <List <Role> >(cacheKey));
            }
            return(list);
        }
        public List <Language> GetAllLanguages()
        {
            List <Language> list;
            const string    cacheKey     = "DomurTech.Providers.LanguageProvider.GetAllLanguages";
            ICacheManager   cacheManager = new MemoryCacheManager();

            if (!cacheManager.Exists(cacheKey))
            {
                list = GetAllLanguagesFromDatabase();
                cacheManager.Add(cacheKey, list);
            }
            else
            {
                list = cacheManager.Get <List <Language> >(cacheKey);
            }
            return(list);
        }