public void AddResponse(string id, string content) { MongodbFunctions mongo = new MongodbFunctions(); ObjectId messId = new ObjectId(id); Databases.DomainModel.AdminResponse newResponse = new Databases.DomainModel.AdminResponse { Content = content, Message = new MongoDBRef("messages", messId) }; mongo.AddResponse(newResponse, messId); }