Пример #1
0
        public async Task <Unit> Handle(DeleteRecipeCommand command, CancellationToken cancellationToken)
        {
            await _recipeRepository.DeleteRecipeAsync(command.RecipeId);

            await _unitOfWork.CommitAsync(cancellationToken);

            return(Unit.Value);
        }