public OperationResult <ISampleDTO> SampleMethod(ISampleDTO sampleDTO) { ISampleBDC sampleBDC = (ISampleBDC)BDCFactory.Instance.Create(BDCType.SampleBDC); return(sampleBDC.SampleMethod(sampleDTO)); }
public OperationResult <ISampleDTO> SampleMethod(ISampleDTO sampleDTO) { ISampleBDC sampleBDC = (ISampleBDC)BDCFactory.Instance.Create(BDCType.SampleBDC);//because bdcfactory is singleton, as we cant create object with new keyword return(sampleBDC.SampleMethod(sampleDTO)); }