Пример #1
0
        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"));
        }
Пример #2
0
 public ActionResult YeniMusteri(TblMusterıler p1)
 {
     if (!ModelState.IsValid)
     {
         return(View("YeniMusteri"));
     }
     db.TblMusterıler.Add(p1);
     db.SaveChanges();
     return(View());
 }