Пример #1
0
        public async Task <ActionResult <ToDoItem> > Delete([FromRoute] string id)
        {
            await eventStoreClient.PublishEvent(
                EventTypes.ToDoDeleted, new DeleteToDoItem
            {
                Id = id
            });

            return(Accepted());
        }