> For the complete documentation index, see [llms.txt](https://docs.gapvelocity.ai/webmap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gapvelocity.ai/webmap/winforms/extend-or-modify-the-converted-application/nowebmap-forms-winforms/interacting-with-the-application-data.md).

# Interacting with the application data

Is important to interact with the data used by the migrated application. For this, we can build our custom REST APIs to interact with the Database.

This is important because the new added form is separated from the WebMap state and models.

An API can be added to the C# migrated code like next:<br>

<figure><img src="/files/AGLEFFg3jQ6bSE8rveek" alt=""><figcaption><p>Custom API Controller</p></figcaption></figure>

Is recommended to create a Custom connection class to execute the custom APIs SQL interaction

<figure><img src="/files/HQrQgBEP3WhlgFoeV1vv" alt=""><figcaption><p>Creating a custom connection to the database</p></figcaption></figure>

And add the CustomConnection right after the existing migrated connection.

<figure><img src="/files/BH8e0uvCXh2LD4ymIY2M" alt=""><figcaption></figcaption></figure>
