using System; using WX.CRM.BLL.Wx; using WX.CRM.Common; using WX.CRM.DataSynFactory.Templates; namespace WX.CRM.DataSynFactory.Cmd { public class Client_DeleteGift_IMP : Interfaces.IDataImportSvr { private readonly WX_SZZYSUBPRODUCT_GIFT_BL _gift = new WX_SZZYSUBPRODUCT_GIFT_BL(); public bool GenerateBusinessOne(Client_DeleteGift t) { try { var gift = _gift.Get(p => p.ID == t.Id); if (gift != null) { _gift.Delete(gift); return true; } return false; } catch (Exception e) { LogHelper.Error(e.ToString()); return false; } } } }