示例#1
0
        public ActionResult GetCategoryCookieProduct()
        {
            if (Request.Cookies["Category"] != null)
            {
                HttpCookie gelen = Request.Cookies["Category"];
                string     id    = gelen["CategoryID"];

                int gelenid = Convert.ToInt32(id);

                if (gelenid != 0)
                {
                    return(PartialView(productmanagement.GetLastClickCategoryProduct(gelenid)));
                }
                else
                {
                    return(View());
                }
            }

            else
            {
                return(View());
            }
        }