public async Task <ApiResponse <IEnumerable <Pedido> > > GetItems() { try { var data = await _repository.BuscarItems(); return(new ApiResponse <IEnumerable <Pedido> >(Domain.TableStatic.StatusCodes.Status200OK, data)); } catch (Exception ex) { return(new ApiResponse <IEnumerable <Pedido> >(Domain.TableStatic.StatusCodes.Status500InternalServerError, ex.Message)); } }