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), });