public IEnumerable <Model.tbl_Gallery> GetAll() { var lstData = HelperCache.GetCache <List <tbl_Gallery> >(KeyCache); if (lstData == null) { lstData = _entities.tbl_Gallery.OrderByDescending(g => g.CreatedDate).ToList(); HelperCache.AddCache(lstData, KeyCache); } return(lstData); }
public List <AdminMenu> GetAll() { var lstData = HelperCache.GetCache <List <AdminMenu> >(KeyCache); if (lstData == null) { lstData = _entities.AdminMenus.ToList(); HelperCache.AddCache(lstData, KeyCache); } return(lstData); }
public List <Category> GetAll() { var lstData = HelperCache.GetCache <List <Category> >(KeyCache); if (lstData == null) { lstData = _entities.Categories.ToList(); HelperCache.AddCache(lstData, KeyCache); } return(lstData); }
public IEnumerable <tbl_Languages> GetAll() { var lstData = HelperCache.GetCache <List <tbl_Languages> >(KeyCache); if (lstData == null) { lstData = _entities.tbl_Languages.ToList(); HelperCache.AddCache(lstData, KeyCache); } return(lstData); }