示例#1
0
        public async Task <Unit> Handle(DeleteToDoItemCommand request, CancellationToken cancellationToken)
        {
            var item = await _todoListRepository.GetToDoListItemAsync(request.Id);

            _todoListRepository.DeleteToDoItem(item);

            return(Unit.Value);
        }