// GET: Temporada/Create public ActionResult Create(int id) { var model = new TemporadaCreateViewModel() { SerieId = id }; return(View(model)); }
public ActionResult Create(TemporadaCreateViewModel model) { temporadaRepository.Insert(new Temporada() { Nome = model.Nome, SerieId = model.SerieId }); return(RedirectToAction("Details", "Series", new { id = model.SerieId })); }