I got asp.net core rest api application and there i have controllers which take case of getting diffrent responses from outside. This is example of controller: