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