public ActionResult Visiblevid(int id) { gv.VisibleVideo(id); gv.Commit(); //var img = gv.GetByIdVideo(id); // var id1 = img.galerie_id; return(RedirectToAction("Index")); }
public ActionResult Delete(int id, FormCollection collection) { try { gs.Delete(gs.GetByIdVideo(id)); var idg = gs.GetByIdVideo(id).galerie_id; gs.Commit(); return(RedirectToAction("Index", "Galerie")); } catch { return(View()); } }