public ActionResult Guncelle(TBLAracMarka p1) { var dgrlr = db.TBLAracMarka.Find(p1.ID); dgrlr.Marka = p1.Marka; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniMarka(TBLAracMarka p1) { if (!ModelState.IsValid) { return(View("YeniMarka")); } db.TBLAracMarka.Add(p1); db.SaveChanges(); return(RedirectToAction("Index")); }