public ActionResult UpdateProduct(int productId)
 {
     if (Session["Admin"] != null)
     {
         Urun                  product  = UrunManager.GetProductDetails(productId);
         List <Marka>          markalar = MarkaManager.GetAll();
         List <SelectListItem> items    = new List <SelectListItem>();
         foreach (var item in markalar)
         {
             items.Add(new SelectListItem {
                 Text = item.MarkaAdi, Value = item.MarkaId.ToString(), Selected = true
             });
         }
         ViewBag.Markalar = items;
         return(View(product));
     }
     else
     {
         return(View("Login"));
     }
 }
 public ActionResult GetProductDetails(int UrunId)
 {
     return(View(manager.GetProductDetails(UrunId)));
 }