public static ProfileResult SetProfileLevel(MongoDatabase database, int level) { CommandResponse result = MongoDatabaseCommands.RunCommand(database, new { profile = level }); return new ProfileResult(result.GetDefaultResponse()); }