public void NewTeam(ref Project project) { Id = Guid.NewGuid(); Name = project.Name; Admin = project.Admin; Time = DateTime.Now; Introduction = "此处的信息将作为团队的对外介绍。"; Announcement = "此处的信息将作为团队的内部公告"; project.Team = this; using (BaseDbContext db = new BaseDbContext()) { var TeamRecord = new TeamRecord(this, TeamMemberStatus.Admin,Extensions.GetContextUser(db)); } }
public void NewTeam(ref Project project) { Id = Guid.NewGuid(); Name = project.Name; Admin = project.Admin; Time = DateTime.Now; Introduction = "此处的信息将作为团队的对外介绍。"; Announcement = "此处的信息将作为团队的内部公告"; Searchable = true; ReportUpdated = false; project.Team = this; var db = new BaseDbContext(); var TeamRecord = new TeamRecord(this, TeamMemberStatus.Admin, Extensions.GetContextUser(ref db)); }