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