Exemplo n.º 1
0
        public ActionResult Edit(TblInterests p)
        {
            var dd = db.TblInterests.Find(p.Id);

            dd.Interest = p.Interest;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Ekle(TblInterests t)
 {
     db.TblInterests.Add(t);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }