public Task ExecuteAsync(DeleteWareHouseCommand command)
        {
            var wareHouseDomain = new WareHouseDomain(_domainService.WriteService);

            wareHouseDomain.DeleteWareHouse(command.Id);

            _domainService.ApplyChanges(wareHouseDomain);
            return(Task.CompletedTask);
        }
        public Task ExecuteAsync(DeleteWareHouseCommand command)
        {
            var WareHouseDomain = new WareHouseDomain(writeService);

            WareHouseDomain.DeleteWareHouse(command.Id);

            domainService.ApplyChanges(WareHouseDomain);
            domainService.SaveChanges();
            return(Task.CompletedTask);
        }