public ActionResult Delete(int id) { if (Session["UserId"] == null) { return Redirect("/admin/login"); } VideoService videoService = new VideoService(); videoService.RemoveVideo(id); return Redirect(Request.UrlReferrer.AbsoluteUri); }
public ActionResult Delete(int id) { if (Session["UserId"] == null) { return Redirect("/admin/login"); } VideoService videoService = new VideoService(); videoService.RemoveVideo(id); return Redirect(Request.UrlReferrer.AbsoluteUri); }