public ActionResult Create([Bind(Include = "VideoGameID,Year,Game,Genre,Publisher,OriginalPlatform")] VideoGame videoGame) { if (ModelState.IsValid) { db.VideoGames.Add(videoGame); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(videoGame)); }
public void Create(Review review) { db.Reviews.Add(review); db.SaveChanges(); }