public ActionResult Guncelle(TblMusterıler p1) { var musteri = db.TblMusterıler.Find(p1.MUSTERIID); musteri.MUSTERIAD = p1.MUSTERIAD; musteri.MUSTERISOYAD = p1.MUSTERISOYAD; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniMusteri(TblMusterıler p1) { if (!ModelState.IsValid) { return(View("YeniMusteri")); } db.TblMusterıler.Add(p1); db.SaveChanges(); return(View()); }