public FactoryViewResult ToFactoryResult(IUserConsoleComponent component, GenericViewResult genericResult)
        {
            var provider        = GetProvider(component.ComponentType);
            var componentResult = new ComponentViewResult(component, genericResult);

            return(new FactoryViewResult(provider, componentResult));
        }
Пример #2
0
        public FactoryViewResult(IUserConsoleComponentProvider provider, ComponentViewResult result)
        {
            Provider = provider;

            Component = result.Component;
            Title     = result.Title;
            ViewPath  = result.ViewPath;
            ViewModel = result.ViewModel;
            ViewData  = result.ViewData;
        }