Exemplo 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 }));
 }
Exemplo n.º 2
0
 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());
 }