예제 #1
0
 private ICommand MakeDeleteQuoteByIdCommand()
 {
     return(new Command(
                "delete_settings_by_id",
                new ObjectSchema()
                .WithOptionalProperty("id", TypeCode.String),
                async(correlationId, parameters) =>
     {
         var id = parameters.GetAsString("id");
         return await _logic.DeleteSectionByIdAsync(correlationId, id);
     }));
 }