public uint SubscriptionDelete(Guid guid, Guid requestingUserGuid)
{
var result = Gateway.ExecuteNonQuery("Subscription_Delete", new[]
{
new MySqlParameter("Guid", guid.ToByteArray()),
new MySqlParameter("RequestingUserGuid", requestingUserGuid.ToByteArray())
});
if(result == -100) throw new InsufficientPermissionsException("User does not have sufficient permissions to delete the subscription");
if(result == -200) throw new UnhandledException("Unhanded exception in Subscription_Delete and was rolled back");
return (uint)result;
}