コード例 #1
0
ファイル: PaymentMethods.aspx.cs プロジェクト: sang-nm/mphc
        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);
        }
コード例 #2
0
        public override bool Delete(long storeId, long entityId)
        {
            PaymentMethod paymentMethod = PaymentMethodService.Instance.Get(storeId, entityId);

            return(paymentMethod.Delete());
        }