Example #1
0
        public ActionResult YeniHobi(TBL_INTERESTS tbl_interests)
        {
            db.TBL_INTERESTS.Add(tbl_interests);
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
Example #2
0
        public ActionResult Guncelle(TBL_INTERESTS p)
        {
            var temp = db.TBL_INTERESTS.Find(p.ID);

            temp.INTEREST = p.INTEREST;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult YeniHobi(TBL_INTERESTS p)
 {
     db.TBL_INTERESTS.Add(p); //tabloya ekle
     db.SaveChanges();        //değişiklikleri kaydet
     return(View());
 }