Beispiel #1
0
 private static async Task <IActionResult> RunControllerAction(PagesController controller, int soc, string actionName)
 {
     return(actionName switch
     {
         nameof(PagesController.Document) => await controller.Document(soc).ConfigureAwait(false),
         _ => await controller.Index().ConfigureAwait(false),
     });