public ActionResult Guncelle(TableKulupler p) { var klp = db.TableKulupler.Find(p.kulupID); klp.kulupAd = p.kulupAd; db.SaveChanges(); return(RedirectToAction("Index", "Kulup")); }
public ActionResult YeniKulup(TableKulupler p) { db.TableKulupler.Add(p); db.SaveChanges(); return(RedirectToAction("Index")); }