public static UsersProjectUpdateDetails GetUserProjectUpdateModel(int userId, int projectId)
        {
            UsersProjectUpdateDetails model = new UsersProjectUpdateDetails()
            {
                userProject  = GetUserProject(userId, projectId),
                projectRoles = ProjectRolesRepositories.GetProjectRolesList(),
            };

            model.To = model.userProject.UserName;
            return(model);
        }
 public static UsersProjectUpdateDetails GetUserProjectModelForCreate(int projectId)
 {
     return(new UsersProjectUpdateDetails()
     {
         userProject = new UsersProjectModel()
         {
             ProjectId = projectId
         },
         projectRoles = ProjectRolesRepositories.GetProjectRolesList(),
         users = GetUsersNotInProject(projectId)
     });
 }