@rsix: Don't you think that retrieving a block of code that works is a great way of learning and understanding a particular concept? If I want to learn a new concept, such as reading or writing to a file or encrypting some text, I don't want to have to start in the docs at the class library level. I want to see code that works and then I can go into the references and learn more about the classes and PEMs. This tool enables that. And it has the benefit of enabling me to accomplish the task.
Just my $0.02. (Hmm. As the host of the show, should my $0.02 be worth more? :))
@award: I ran this by some folks who know async-await better than me and here is what they said. The problem with the code as I have it is that the lambda passed to the RelayCommand ignores the returned Task. This is fine when the call succeeds but any exceptions thrown by Save or Delete are ignored.
So they recommend making the lambda async and awaiting the task as follows:
SaveCustomer = new RelayCommand(async() => await Save());
They also recommend calling the method SaveAsync rather than Save.