public void DeleteDistribution(Distribution distribution) { distribution.Validate(true); if (BeforeDeleteDistribution != null) BeforeDeleteDistribution(distribution, EventArgs.Empty); FI.Common.DataAccess.IDistributionsDA dacObj=DataAccessFactory.Instance.GetDistributionsDA(); dacObj.DeleteDistribution(distribution.ID); distribution=null; }
public Distribution GetDistribution(decimal ID , bool Fetch) { Distribution distribution=new Distribution(ID , this.Owner); if(Fetch) distribution.Fetch(); return distribution; }