public ActionResult Create([Bind(Include = "id,titulo,autor,isbn,fecha_publicacion,numero_ejemplares,id_categoria")] Videos video) { if (ModelState.IsValid) { VideoBLL.Create(video); return(RedirectToAction("Index")); } return(View(video)); }
public ActionResult Create([Bind(Include = "idvideo,titulo,fecha_publicacion,formato,duracion,categoria")] Video video) { if (ModelState.IsValid) { VideoBLL.Create(video); return(RedirectToAction("Index")); } return(View(video)); }
public ActionResult Create([Bind(Include = "id_vid,titulo_vid,fecha_publicacion_vid,formato_vid,duracion_vid,id_cat")] Video video) { if (ModelState.IsValid) { VideoBLL.Create(video); return(RedirectToAction("Index")); } ViewBag.id_cat = new SelectList(CategoriaBLL.List(), "id_cat", "nombre_cat", video.id_cat); return(View(video)); }
public ActionResult Create([Bind(Include = "idVideo,titulo,fechapublicacion,formato,duracion,idCategoria")] Video video) { if (ModelState.IsValid) { VideoBLL.Create(video); return(RedirectToAction("Index")); } ViewBag.idCategoria = new SelectList(CategoriaBLL.List(), "idCategoria", "nombre", video.idCategoria); return(View(video)); }
public ActionResult Create([Bind(Include = "id_vdo,titulo_vdo,fch_public_vdo,duracion_vdo,id_categoria")] Video video) { if (ModelState.IsValid) { VideoBLL.Create(video); return(RedirectToAction("Index")); } ViewBag.id_categoria = new SelectList(CategoriaBLL.List(), "id_categoria", "descripcion", video.id_categoria); return(View(video)); }