Ejemplo n.º 1
0
        public ActionResult ManageUsers(int id)
        {
            ViewBag.ProjectId = id;

            #region PM section
            var pmId = projHelper.ListUsersOnProjectInRole(id, "Project_Manager").FirstOrDefault();
            ViewBag.ProjectManagerId = new SelectList(rolesHelper.UsersInRole("Project_Manager"), "Id", "Email", pmId);
            #endregion

            #region Dev Section
            ViewBag.Developers = new MultiSelectList(rolesHelper.UsersInRole("Developer"), "Id", "Email", projHelper.ListUsersOnProjectInRole(id, "Developer"));
            #endregion

            #region Sub Section
            ViewBag.Submitters = new MultiSelectList(rolesHelper.UsersInRole("Submitter"), "Id", "Email", projHelper.ListUsersOnProjectInRole(id, "Submitter"));
            #endregion

            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult ManageUsers(int id)
        {
            ViewBag.ProjectId        = id;
            ViewBag.ProjectManagerId = new SelectList(roleHelper.UsersInRole("ProjectManager"), "Id", "Email", projectHelper.ListUsersOnProjectInRole(id, "ProjectManager").FirstOrDefault());

            ViewBag.Developers = new MultiSelectList(roleHelper.UsersInRole("Developer"), "Id", "Email", projectHelper.ListUsersOnProjectInRole(id, "Developer"));

            ViewBag.Submitters = new MultiSelectList(roleHelper.UsersInRole("Submitter"), "Id", "Email", projectHelper.ListUsersOnProjectInRole(id, "Submitter"));

            return(View());
        }