public ActionResult RemoveImage(int id)
        {
            // In order for this method to be called the client must be logged in as the project owner.
            if (Session["Project_ID"] == null)
            {
                return(Redirect("/User/Index"));
            }
            int         project_id = (int)Session["Project_ID"];
            ProjectAuth cred       = check_clientRelation(project_id);

            if (!cred.Valid)
            {
                return(Redirect("/User/Index"));
            }
            Models.ProjectDeleteImageViewModel modifyModel = new Models.ProjectDeleteImageViewModel(User.Identity.GetUserId(), cred.Entrepreneur_ID, project_id);
            modifyModel.Image_ID = id;
            modifyModel.get_Image();
            return(View(modifyModel));
        }
        public ActionResult RemoveImage(int id, string confirm_CheckBox)
        {
            if (Session["Project_ID"] == null)
            {
                throw new Exception("What the hell, the client just posted to remove an image without a project id in session.");
            }
            int         project_id = (int)Session["Project_ID"];
            ProjectAuth cred       = check_clientRelation(project_id);

            if (!cred.Valid)
            {
                return(Redirect("/User/Index"));
            }
            Models.ProjectDeleteImageViewModel modifyModel = new Models.ProjectDeleteImageViewModel(User.Identity.GetUserId(), cred.Entrepreneur_ID, project_id);
            modifyModel.Image_ID = id;
            if (confirm_CheckBox == "on") // on is the equivalent of true from a checkbox element.
            {
                modifyModel.delete_Image();
            }
            return(Redirect(string.Format("/Project/Details/{0}", project_id)));
        }