public MongoUserGroupMember(MongoUserGroupMemberUser mongoUserGroupMemberUser) { Id = ObjectId.GenerateNewId(); Type = UserGroupUserType.Owner; User = mongoUserGroupMemberUser.Id; CreatedAt = DateTime.UtcNow; UpdatedAt = DateTime.UtcNow; }
public MongoUserGroup(UserGroupCreateRequest userGroup, MongoUserGroupMemberUser mongoUserGroupMemberUser) { Name = userGroup.Name; Members = new List <MongoUserGroupMember>() { new MongoUserGroupMember(mongoUserGroupMemberUser) }; CreatedAt = DateTime.UtcNow; UpdatedAt = DateTime.UtcNow; }