modified GetTenantByIdQuery

changed the parameter from query to query.TenatId, reference Issue #3