Exemplo n.º 1
0
        public ActionResult MarkaGuncelle(TBL_Marka p)
        {
            var markagnc = db.TBL_Marka.Find(p.MarkaID);

            markagnc.MarkaAD = p.MarkaAD;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult YeniMarka(TBL_Marka p)
 {
     if (!ModelState.IsValid)
     {
         return(View("YeniMarka"));
     }
     db.TBL_Marka.Add(p);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }