Good day @Doğukan Cantuğ ,
First of all, you sued the tag azure-sql-database
but this question has nothing to do with azure-sql-database. It is a pure developing question related to the code of your App
secondly, we are not here to develop for you but to help you do what you need. If you need someone to write the code for you then you can hire a developer. If you need help to write the code and understand then the communities supporters will be happy to help (in the right forum).
In order to help you we need to find the right forum and there you should provide more information in order to give them insight on the issue
therefore,
1) What language and technologies do you for the development?
2) next in the right forum, remember to provide the code which you already have at this time