Esempio n. 1
0
 public bool Edit(Topic topic, Category category)
 => Handle(() =>
 {
     using (var client = new FlashcardsHttpClient())
     {
         return(client.Put(RestUrl(topic), category));
     }
 });
Esempio n. 2
0
 public bool Edit(Topic topic, string category, string deck, Card card)
 => Handle(() =>
 {
     using (var client = new FlashcardsHttpClient())
     {
         return(client.Put(RestUrl(topic, category, deck), card));
     }
 });