public override AbstractOperationResult <List <Cart> > Handle(CartGetAllQuery query)
        {
            var result = _repository.GetAll().Result.ToList();

            return(new SuccessOperationResult <List <Cart> >(result));
        }
        public override async Task <IExecutionResult <List <Cart> > > HandleAsync(CartGetAllQuery query, CancellationToken cancellationToken)
        {
            var result = await _cartRepository.GetAll();

            return(new SuccessExecutionResult <List <Cart> >(GetType(), result));
        }