public ActionResult SlideUp()
        {
            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.MoveSlideUp((int)id);
            return(RedirectPermanent("/Editors/manageSlideshow"));
        }
Exemple #2
0
 public ActionResult SlideUp()
 {
     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.MoveSlideUp((int)id);
         return(RedirectPermanent("/WebsiteManagement/manageSlideshow"));
     }
     else
     {
         return(RedirectPermanent("/home/"));
     }
 }