示例#1
0
 public bool AddressDelete(Address address)
 {
     return(ExecuteFaultHandledOperation(() =>
     {
         var address_data = _addr_es.Map(address);
         _address_repo.Delete(address_data);
         return true;
     }));
 }
 public CompanyData Map(Company company)
 {
     return(new CompanyData()
     {
         CompanyId = company.CompanyId != default(Guid) ? company.CompanyId : Guid.NewGuid(),
         CompanyCode = company.CompanyCode,
         CompanyName = company.CompanyName,
         CompanyDesc = company.CompanyDesc,
         CompanyAddresses = _addressEntityService.Map(company.CompanyAddresses),
         CompanyAttributes = _entityAttributeEntityService.Map(company.CompanyAttributes)
     });
 }
 public void SaveAddress(Address address)
 {
     ExecuteHandledOperation(() => { return(_addressRepository.Save(_addressEntityService.Map(address))); });
 }