Hey guys, how are you?
I'm developing my first application on web api
asp.net
.
And I'm having trouble displaying the content in a view
.
Controller:
public class ListaPresenteController : ApiController
{
public IHttpActionResult Get()
{
var produto = new Produtos();
return Ok(produto.Listar());
}
}
With this code it is working, but I was only able to display the list of products in home
, I am having difficulty setting the view
of products, and I want to display the list of products for example in url: www.meupai.com/produtos.