public ActionResult Guncelle(int id) { data.pdto = ps.GetOneProduct(id, Convert.ToInt32(Session["SupplierID"])); if (data.pdto.UrunAd != null) { return(View(data)); } return(RedirectToAction("Index")); }