// GET: Compra
 public ActionResult Index()
 {
     return(View(_compraAppService.ObterTodos()));
 }
Exemple #2
0
 public IEnumerable <CompraViewModel> ObterTodos()
 {
     return(_compraAppService.ObterTodos());
 }
Exemple #3
0
 public async Task <IEnumerable <CompraViewModel> > Get()
 {
     return(await _compraAppService.ObterTodos());
 }