public static int Execute(DeleteNoteOptions options) { try { MarvelApi.DeleteNoteAsync(options.Url, options.CreatorId).Wait(); return(0); } catch (Exception e) { Console.WriteLine("Error deleting note:"); Console.WriteLine(e.Message); return(-1); } }
static int DeleteNote(DeleteNoteOptions options) { return(DeleteNoteCommandHandler.Execute(options)); }