예제 #1
0
        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"));
        }