public ActionResult <AddressReadDto> GetAddressById(int id) { var ret = _repository.GetAddressById(id); if (ret != null) { return(Ok(_mapper.Map <AddressReadDto>(ret))); } return(NotFound()); }