예제 #1
0
 private async Task <IActionResult> RunControllerAction(ChatController controller, string actionName)
 {
     return(actionName switch
     {
         nameof(ChatController.ChatHtmlHead) => controller.ChatHtmlHead(),
         nameof(ChatController.ChatBreadcrumb) => controller.ChatBreadcrumb(),
         _ => await controller.ChatBody().ConfigureAwait(false),
     });