public async Task <IActionResult> RemoveAsync(Guid id)
        {
            FoodTable foodTable = await _foodTableRepository.GetDefaultByIdAsync(id);

            if (foodTable == null)
            {
                return(NotFound());
            }

            await _foodTableRepository.RemoveAsync(foodTable);

            return(await CommitAsync());
        }
        public async Task <CommandResult> Handle(RemoveFoodTableCommand request, CancellationToken cancellationToken)
        {
            CustomFoodTable customFoodTable = await _foodTableRepository.GetCustomByIdAsync(request.FoodTableId, _currentProfileId);

            if (customFoodTable == null)
            {
                return(FailureDueToCustomFoodTableNotFound());
            }

            await _foodTableRepository.RemoveAsync(customFoodTable);

            return(await CommitAndPublishDefaultAsync());
        }