public IEnumerable <AddressBookDto> FindAddressBookDtos() { try { var addresses = _addressRepository.Find(); if (addresses != null && !addresses.Any()) { return(new List <AddressBookDto>()); } var addressBookDtos = MappingProfile.FromAddressesDbEntityToAddressBookDto(addresses.ToList()); return(addressBookDtos); } catch (Exception e) { throw new Exception("Could not find address book details", e.InnerException); } }