public Task Delete(DeleteTodos request)
        {
            if (request.Ids.IsEmpty())
            {
                return(Task.CompletedTask);
            }

            Todos.RemoveAll(x => request.Ids.Contains(x.Id));
            var tasks = request.Ids.Map(x => ServerEvents.NotifyChannelAsync("todos", "todos.delete", x));

            return(Task.WhenAll(tasks));
        }
 public Task Delete(DeleteTodo request)
 {
     Todos.RemoveAll(x => x.Id == request.Id);
     return(ServerEvents.NotifyChannelAsync("todos", "todos.delete", request.Id));
 }