public ActionResult MyPurchase(int userId) { string productlist = Session["addlist"] as string; int count = (int)Session["count"]; List <Purchase> l = PurchaseData.GetListPurchase(userId); ViewData["list"] = l; ViewData["addlist"] = productlist; ViewData["count"] = count; return(View()); }