Beispiel #1
0
        public ActionResult Index(tblRegistration obj)

        {
            if (ModelState.IsValid)
            {
                MvcDbStokEntities db = new MvcDbStokEntities();
                db.tblRegistration.Add(obj);
                db.SaveChanges();
            }
            return(View(obj));
        }
Beispiel #2
0
 public BaseRepository()
 {
     db    = new MvcDbStokEntities();
     table = db.Set <T>();
 }