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