private ActionResult CreateView(RepositoryModel model) { var user = UserX.FindByID(Token.ID); // 拥有者 var owners = user.Teams.Where(e => e.Team != null).ToDictionary(e => e.Team.Name, e => e.TeamName); // 加上自己 owners[user.Name] = user + ""; ViewBag.Owners = owners; return(View("Create", model)); }