public ActionResult AddUserToProjectConfirm(int?id, [Bind(Include = "ApplicationUserId")] UserProject userProject) { if (id == null) { return(RedirectToAction("Index")); } ProjectHandler.AssignUserToProject(userProject.ApplicationUserId, Convert.ToInt32(id)); return(RedirectToAction("MyProjects")); }