Exemple #1
0
        public ActionResult Guncelle(TBLAracMarka p1)
        {
            var dgrlr = db.TBLAracMarka.Find(p1.ID);

            dgrlr.Marka = p1.Marka;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult YeniMarka(TBLAracMarka p1)
 {
     if (!ModelState.IsValid)
     {
         return(View("YeniMarka"));
     }
     db.TBLAracMarka.Add(p1);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }