Ejemplo n.º 1
0
        public ActionResult Index()
        {
            var produtoService = new Services.ProdutoService();

            return View(produtoService.GetProdutos());
        }
Ejemplo n.º 2
0
        public async  Task<ActionResult> IndexAsync()
        {
            var produtoService = new Services.ProdutoService();

            return View(await produtoService.GetProdutosAsync());
        }