Aqueduct.Appia.Core.AppiaViewFactory.GetRenderedView C# (CSharp) Method

GetRenderedView() private method

private GetRenderedView ( string viewName, dynamic model ) : Action
viewName string
model dynamic
return Action
        private Action<Stream> GetRenderedView(string viewName, dynamic model)
        {
            var viewLocationResult =
                viewLocator.GetViewLocation(Path.GetFileNameWithoutExtension(viewName), this.GetExtensionsToUseForViewLookup(viewName));

            var resolvedViewEngine =
                GetViewEngine(viewLocationResult);

            if (resolvedViewEngine == null)
            {
                return NullView;
            }

            return SafeInvokeViewEngine(
                resolvedViewEngine,
                viewLocationResult,
                model
            );
        }