public ActionResult ManageProjectUsers(string managerId, List <string> developerIds, List <string> submitterIds, int projectId) { //foreach (var projectId in projectId) //{ if (!string.IsNullOrEmpty(managerId)) { //if (!projHelper.IsUserOnProject(managerId, projectId.Value)) projHelper.AddProjectManager(managerId, projectId); } if (developerIds != null) { foreach (var devId in developerIds) { if (!projHelper.IsUserOnProject(devId, projectId)) { projHelper.AddUserToProject(devId, projectId); } } } if (submitterIds != null) { foreach (var submitterId in submitterIds) { if (!projHelper.IsUserOnProject(submitterId, projectId)) { projHelper.AddUserToProject(submitterId, projectId); } } } //} return(Redirect(Request.UrlReferrer.ToString())); }