public async Task <IActionResult> GetDetalles( int id ) { return(Ok( await _compra.ListarDetalleCompra(id) )); }