public ActionResult SelectProduct(int x) { Debug.WriteLine(x); Product p = _strBL.SelectProduct(x); HttpContext.Session.SetString("Product name", p.name); HttpContext.Session.SetInt32("Product id", p.id); HttpContext.Session.SetString("Product price", p.price.ToString()); decimal pri = Convert.ToDecimal(HttpContext.Session.GetString("Product price")); Debug.WriteLine(pri); return(View(_mapper.cast2ProductVM(p))); }