public ActionResult MarkaGuncelle(TBL_Marka p) { var markagnc = db.TBL_Marka.Find(p.MarkaID); markagnc.MarkaAD = p.MarkaAD; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniMarka(TBL_Marka p) { if (!ModelState.IsValid) { return(View("YeniMarka")); } db.TBL_Marka.Add(p); db.SaveChanges(); return(RedirectToAction("Index")); }