/// <summary> /// Creates a new project of the given type and name and adds /// it to the list. /// </summary> /// <returns>Returns a new project of this type.</returns> public async Task<Project> CreateProject(ProjectType type, string name, Owner founder) { var project = new Project(type, name, System.Guid.NewGuid(), founder); AddProject(project); return project; }
public Project(ProjectType type, string name, Guid id, Owner founder) { Type = type; Name = name; DateCreated = System.DateTime.Now; Id = id; Users = new Dictionary<Guid, ProjectUser>(); Users[founder.Id] = founder; }