public ActionResult Guncelle(TblKulup p) { var klp = db.TblKulup.Find(p.KulupId); klp.KulupAd = p.KulupAd; klp.KulupKontenjan = p.KulupKontenjan; db.SaveChanges(); return(RedirectToAction("Index", "Kulup")); }
public ActionResult YeniKulup(TblKulup p2) { db.TblKulup.Add(p2); db.SaveChanges(); return(View()); }