Exemple #1
0
        public ActionResult Güncelle(Müsterikayıt P)
        {
            var güncelle = db.Müsterikayıt.Find(P.Mno);

            güncelle.Tc       = P.Tc;
            güncelle.Ad       = P.Ad;
            güncelle.Soyad    = P.Soyad;
            güncelle.Telefon  = P.Telefon;
            güncelle.Email    = P.Email;
            güncelle.Reztarih = P.Reztarih;
            güncelle.Kisisayı = P.Kisisayı;
            db.SaveChanges();
            return(RedirectToAction("Services"));
        }
Exemple #2
0
 public ActionResult Ekle(Müsterikayıt P)
 {
     db.Müsterikayıt.Add(P);
     db.SaveChanges();
     return(RedirectToAction("Services"));
 }