Esempio n. 1
0
        public ActionResult Guncelle(categorytable p1)
        {
            var category = db.categorytables.Find(p1.id);

            category.categoryname = p1.categoryname;
            category.isaktif      = p1.isaktif;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult NewCategory(categorytable ekle)
 {
     db.categorytables.Add(ekle);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }