public virtual void Delete() { if (this.BaseDataAccessAvailable()) { CodeSampleApplication.Dto.Address dto = _baseBusiness.FillDtoWithThis(this); CodeSampleApplication.Dto.Address returnDto = _baseDataAccess.Delete(dto); this.FillThisWithDto(returnDto); } else { throw new System.ApplicationException(FILL_DB_SETTINGS_EXCEPTION); } }
public virtual void Delete() { if (this.BaseDataAccessAvailable()) { TestSprocGenerator.Data.SingleTable.Dto.Territories dto = _baseBusiness.FillDtoWithThis(this); TestSprocGenerator.Data.SingleTable.Dto.Territories returnDto = _baseDataAccess.Delete(dto); this.FillThisWithDto(returnDto); } else { throw new System.ApplicationException(FILL_DB_SETTINGS_EXCEPTION); } }