public async Task <IReadOnlyList <OrdenCompras> > getOrdenComprasByUserEmail(string email)
        {
            var specification = new OrdenCompraWithItemsSpecification(email);

            return(await _unitOfWork.Repository <OrdenCompras>().getAllWithSpec(specification));
        }
        public async Task <OrdenCompras> getOrdenComprasById(int id, string email)
        {
            var specification = new OrdenCompraWithItemsSpecification(id, email);

            return(await _unitOfWork.Repository <OrdenCompras>().getByIdWithSpec(specification));
        }