public ActionResult Index() { try { CustomIdentity customIdentity = null; if (ControllerContext.HttpContext.User.Identity.IsAuthenticated) { customIdentity = (CustomIdentity)ControllerContext.HttpContext.User.Identity; } string username = string.Empty; if (customIdentity != null) { username = customIdentity.Name; } //ProductBO productBO = new ProductBO(username); ProductCache cache = new ProductCache(); List <Product> list = (List <Product>)cache.GetAvailableProducts(username);//productBO.GetCampains(); return(View(list.Where(x => x.IsCampain == true).ToList())); } catch (Exception) { throw; } }