Example #1
0
 public ActionResult Create(TVShowCreate tVShowCreate)
 {
     if (ModelState.IsValid)
     {
         _db.TVShowCreates.Add(tVShowCreate);
         _db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tVShowCreate));
 }
Example #2
0
 public bool Save()
 {
     return(_context.SaveChanges() >= 0);
 }