コード例 #1
0
 public static void Html(this RestRequestResponse response, Action <HtmlFormatter> formattingAction)
 {
     response.AddResponseActionForFormat("html", (context, engineContext) => RenderHtmlResponse(formattingAction));
 }
コード例 #2
0
 public static void Json(this RestRequestResponse response, Action <JsonFormatter> formattingAction)
 {
     response.AddResponseActionForFormat("json", (context, engineContext) => RenderJsonResponse(formattingAction, context, engineContext));
 }