public ActionResult SlideDown() { int id = 0; if (Request.QueryString["sl"] != null) { Int32.TryParse(Request.QueryString["sl"].ToString(), out id); } hypster_tv_DAL.homeSlideshowManager homeSlideshowManager = new hypster_tv_DAL.homeSlideshowManager(); homeSlideshowManager.MoveSlideDown((int)id); return(RedirectPermanent("/Editors/manageSlideshow")); }
public ActionResult SlideDown() { if (Session["Roles"] != null && Session["Roles"].Equals("Admin")) { int id = 0; if (Request.QueryString["sl"] != null) { Int32.TryParse(Request.QueryString["sl"].ToString(), out id); } hypster_tv_DAL.homeSlideshowManager homeSlideshowManager = new hypster_tv_DAL.homeSlideshowManager(); homeSlideshowManager.MoveSlideDown((int)id); return(RedirectPermanent("/WebsiteManagement/manageSlideshow")); } else { return(RedirectPermanent("/home/")); } }