public ActionResult Guncelle(TBLKULUP tbl) { var kulp = db.TBLKULUP.Where(m => m.KulupId == tbl.KulupId).FirstOrDefault(); kulp.KulupAd = tbl.KulupAd; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniKulup(TBLKULUP p) { if (ModelState.IsValid) { db.TBLKULUP.Add(p); db.SaveChanges(); } return(View()); }