示例#1
0
        public ActionResult Guncelle(TBLVELİ p)
        {
            var v = db.TBLVELİ.Find(p.İD);

            v.AD       = p.AD;
            v.SOYAD    = p.SOYAD;
            v.YAKINLIK = p.YAKINLIK;
            v.ADRES    = p.ADRES;
            v.POSTAKOD = p.POSTAKOD;
            v.TELEFON  = p.TELEFON;
            v.TC       = p.TC;
            v.GELİRİ   = p.GELİRİ;
            db.SaveChanges();
            return(RedirectToAction("Index", "Veli"));
        }
示例#2
0
 public ActionResult VeliEkle(TBLVELİ p)
 {
     db.TBLVELİ.Add(p);
     db.SaveChanges();
     return(View());
 }