Esempio n. 1
0
 public ActionResult AssignProjectManager(int ProjectId, string ProjectManagerId)
 {
     if (ProjectId != 0 && ProjectManagerId != null)
     {
         projHelper.AssignProjectManager(ProjectId, ProjectManagerId);
     }
     return(RedirectToAction("Details", new { id = ProjectId }));
 }
 public ActionResult ReAssignManager(List <int> projects, string projectManagers)
 {
     if (projects != null)
     {
         foreach (var proj in projects)
         {
             notificationHelper.NewProjectManagerNotification(proj, projectManagers);
             projHelper.AssignProjectManager(proj, projectManagers);
         }
     }
     ViewBag.ProjectManagers = new SelectList(rolesHelper.UsersInRole("Project Manager"), "Id", "FullName");
     ViewBag.Projects        = new MultiSelectList(db.Projects.ToList(), "Id", "Name");
     return(View());
 }