private static async Task <T> InstantiateController <T>(ArticleController controller, bool preview = false)
        {
            var controllerResult = (T)await controller.GetArticleAsync(HubName, SlugName, preview, CancellationToken.None);

            return(controllerResult);
        }
Exemplo n.º 2
0
        private static async Task <T> InstantiateController <T>(ArticleController controller, string hubName, string slugName)
        {
            var controllerResult = (T)await controller.GetArticleAsync(hubName, slugName, CancellationToken.None);

            return(controllerResult);
        }