예제 #1
0
 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);
     }
 }
예제 #2
0
 static int AddNote(AddNoteOptions options)
 {
     return(AddNoteCommandHandler.Execute(options));
 }