I am beginner in web application development. I was told to write an end point in ASP.NET MVC 5 Project which needs to be called from a desktop app.
So, below is what I did In
Controller:
[HttpGet]
public ActionResult ClearCoInfo(int id)
{
return new EmptyResult();
}
In WebAPI Controller
[HttpGet]
public IHttpActionResult ClearCoInfo(int id)
{
return new EmptyResult();
}
Now I want to know what's the difference between above two approach and which is the correct approach. Because I am able to access both via a URL. Please guide me.