示例#1
0
        public async Task AddOrReplaceItem(AddOrReplaceItemRequest request)
        {
            var item = await _todoListService.AddOrReplaceItem(request.ListId, request.TodoListItem);

            await Clients.Group(request.ListId.ToString()).SendAsync("AddOrReplace", new AddOrReplaceItemResponse()
            {
                TodoListItem = item
            });
        }