public async Task <HistoricoPedidoDto> ObterUltimoHistoricoPedidoComanda(Guid idComanda) { using (var connection = _sqlConnectionFactory.OpenConnection()) { return(await connection.QueryFirstOrDefaultAsync <HistoricoPedidoDto>(SQL_OBTER_ULTIMO_HISTORICOPEDIDO_COMANDA, new { idComanda })); } }