# 7.1.8 Práctica Crear el servicio para ClientesCategorias

Para practicar puedes agregar el EDM para ClientesCategoria y el controller y probar los métodos expand. Los pasos serían:

1. Agregar al EdmModel la tabla **ClientesCategorias.**
2. Agregar el controller **ClientesCategorias** con la clase base **ODataController.**

Puedes probar el servicio con Postman

```csharp
http://localhost:5000/odata/ClientesCategorias?$expand=Categoria,Cliente
```

![](/files/-MBl8bEqMatvjuc_mPEE)

Puedes comparar en github mi solución.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://abi.gitbook.io/net-core/6.2-configurar-tus-servicios-con-odata/7.1.8-practica-crear-el-servicio-para-clientescategorias.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
