Answer the question
In order to leave comments, you need to log in
How to call api controller from mvc controller?
Good evening! There is an application layer (a separate project) with api controllers. How to call it from a regular controller?
when you try to do something similar, it works, but it's not clear how to pass parameters in this way?
i.e., this doesn't work anymore
Answer the question
In order to leave comments, you need to log in
у вас url кривой получается скорее всего
http://localhost:56543/api/Country/{id}/ в браузере открыть попробуйте. Никакой магии в api контролерах нет, работает как обычный http сервер, так что проверьте из браузера заработает или нет
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question