public Disable ( Kooboo.Commerce.Payments.PaymentMethod method ) : bool | ||
method | Kooboo.Commerce.Payments.PaymentMethod | |
리턴 | bool |
public bool Disable(PaymentMethod method)
{
if (method.MarkDisabled())
{
_repository.Database.SaveChanges();
Event.Raise(new PaymentMethodDisabled(method), _instance);
return true;
}
return false;
}