public bool RemoveContactAddress(int userId, int addressId) { Users user = GetUserById(userId); if (user == null) { throw new NoEntryFoundException(userId, typeof(Users).Name); } UserAddresses address = AddressRepository.FindByIdAndUserId(addressId, user.Id); if (address == null) { throw new NoEntryFoundException(addressId, userId, typeof(UserAddresses).Name); } AddressRepository.Remove(address); return(true); }