public int AddOrUpdateType(AddressType type) { if (type == null) { throw new ArgumentNullException(nameof(type)); } return(ExecuteFaultHandledOperation(() => { var address_type_data = _addr_es.Map(type); return _repo_addr_type.Insert(address_type_data); })); }