public ActionResult DeleteMovieAction(string movieID)
 {
     if (Session["uType"] == null)//user not logged in
     {
         return(RedirectToAction("Login"));
     }
     else
     {
         if (Session["uType"].ToString() == "A")//admin
         {
             int ret = CRUDmovie.DelMovieFunc(movieID);
             if (ret == 1)
             {
                 return(RedirectToAction("Index"));
             }
             else if (ret == -1)//DB connection failed
             {
                 return(RedirectToAction("Error", new { param = -1 }));
             }
             else
             {
                 return(RedirectToAction("Error", new { param = 10 }));
             }
         }
         else//user not admin
         {
             return(RedirectToAction("Index"));
         }
     }
 }