Пример #1
0
        public ActionResult AssignProjectManager(int id)
        {
            var project = db.Project.Find(id);
            var model   = new ProjectUsersView {
                ProjectId = id, ProjectName = project.Name
            };
            var userProjectList = helper.ListProjectManagersNotOnProject(id);

            model.Users = new MultiSelectList(userProjectList.OrderBy(m => m.DisplayName), "id", "DisplayName", null);

            return(View(model));
        }