public JsonResult GetBasketCooki() { FsetMvcEntities db = new FsetMvcEntities(); List <AboutUs> aboutUs = db.AboutUs.ToList(); long _basketCookiCount = 0; if (Request.Cookies.AllKeys.Contains("ProductBasketCookie")) { var basketCooki = Request.Cookies["ProductBasketCookie"].Value.Split(",".ToCharArray()); foreach (var item in basketCooki) { if (item != null && item != "") { _basketCookiCount++; } } } return(Json(_basketCookiCount, JsonRequestBehavior.AllowGet)); }