public static int Execute(AddNoteOptions options)
 {
     try
     {
         MarvelApi.AddNoteAsync(options.Url, options.CreatorId, options.NoteText).Wait();
         return(0);
     }
     catch (Exception e)
     {
         Console.WriteLine("Error adding note:");
         Console.WriteLine(e.Message);
         return(-1);
     }
 }
Esempio n. 2
0
 static int AddNote(AddNoteOptions options)
 {
     return(AddNoteCommandHandler.Execute(options));
 }