public uint SubscriptionUpdate(Guid guid, string newName, Guid requestingUserGuid)
{
var result = Gateway.ExecuteNonQuery("Subscription_Update", new[]
{
new MySqlParameter("Guid", guid.ToByteArray()),
new MySqlParameter("NewName", newName),
new MySqlParameter("RequestingUserGuid", requestingUserGuid.ToByteArray())
});
if (result == -100) throw new InsufficientPermissionsException("User does not have sufficient permissions to update the subscription");
return (uint)result;
}