public ActionResult Create(Video video) { if (ModelState.IsValid) { db.Videos.Add(video); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(video)); }
public void Save() { db.SaveChanges(); }