public async Task <IActionResult> ObterPorId(int id)
 {
     try
     {
         return(Ok(_repositorio.ObterPorId(id)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Esempio n. 2
0
 public async Task <Venda> ObterPorId(int id, bool incluirTodosItens = false)
 {
     return(await VendaRepositorio.ObterPorId(id));
 }