public async Task <ActionResult> GetCompra()
        {
            try
            {
                var dados = await _compraService.GetAllAsync();

                return(Ok(dados));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex));
            }
        }