I am beginner in software field. I have one ASP.Net MVC 5 (c#) project. In that I need to write one end point which can be called from a desktop app. Basically desktop app needs to send one integer value to my controller action aka end point. I know how to create a web api. So, I added a WebApi controller in my controller folder namely "HelloController" and below is the code.
public IHttpActionResult Follow(int y)
{
// some code
return Ok();
}
Question 1. Is that it? So, in my desktop app can I call now /HelloController/Follow/34
Question 2. Or Am I totally wrong. And I need some other end point and not the WebApi end point. Please guide me here.
P.S: My desktop app is in VB.Net