public bool DeleteContent(string paymentMethodId) { try { PaymentMethod method = new PaymentMethod(Convert.ToInt32(paymentMethodId)); if (method != null && method.PaymentMethodId > 0) { ContentLanguage.DeleteByContent(method.Guid); PaymentMethod.Delete(method.PaymentMethodId); } } catch (Exception) { return(false); } return(true); }
public override bool Delete(long storeId, long entityId) { PaymentMethod paymentMethod = PaymentMethodService.Instance.Get(storeId, entityId); return(paymentMethod.Delete()); }