Example #1
0
        // GET: Videos/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Video video = VideoBLL.Get(id);

            if (video == null)
            {
                return(HttpNotFound());
            }
            return(View(video));
        }
Example #2
0
        // GET: Videos/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Video video = VideoBLL.Get(id);

            if (video == null)
            {
                return(HttpNotFound());
            }
            ViewBag.id_cat = new SelectList(CategoriaBLL.List(), "id_cat", "nombre_cat", video.id_cat);
            return(View(video));
        }
        // GET: Videos/Details/5
        public ActionResult Details(int?id)
        {
            ViewBag.title = "Detalle";
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Video video = VideoBLL.Get(id);

            if (video == null)
            {
                return(HttpNotFound());
            }
            return(View(video));
        }