public ActionResult Create(int id, Temporada collection) { try { // TODO: Add insert logic here TemporadaCEN cen = new TemporadaCEN(); cen.New_(id, collection.Nombre); string action = "Details"; string controller = "Serie"; int arg = (int)System.Web.HttpContext.Current.Session["id_serie"]; return(RedirectToAction(action, controller, new { id = arg })); } catch { return(View()); } }
public ActionResult Create_temp(int id, Temporada collection) { try { TemporadaEN en = new TemporadaEN(); // TODO: Add insert logic here TemporadaCEN cen = new TemporadaCEN(); cen.New_(id, collection.Nombre); //IList<int> resu = new List<int>(); //resu.Add(temp); //resu.Aggregate<int>(temp); //SerieCEN cens = new SerieCEN(); //cens.Addtemporada(id, resu); return(RedirectToAction("mostrar_temp", "Serie", new { id = id })); } catch { return(View()); } }