Beispiel #1
0
        public IActionResult Index()
        {
            ConfigUrlService urlService = new ConfigUrlService();
            string           routeProxy = $"{urlService.GetProxy()}/public/gnossdeustobackend/home";

            return(Redirect(routeProxy));
        }
Beispiel #2
0
        /// <summary>
        /// Obtiene los datos de una página
        /// </summary>
        /// <param name="route">Ruta de la página</param>
        /// <returns></returns>
        public IActionResult Details(string route)
        {
            var           page          = _documentationApi.GetPage(route);
            string        routeProxy    = $"{_configUrlService.GetProxy()}{page.Route}";
            PageViewModel pageViewModel = new PageViewModel()
            {
                Route          = routeProxy,
                RouteProxyLess = page.Route,
                LastModified   = page.LastModified,
                PageId         = page.PageId
            };

            return(View(pageViewModel));
        }
        public IActionResult Index()
        {
            var page = _documentationApi.GetPage(RUTA_MENU);

            if (page != null)
            {
                ConfigUrlService configUrlService = new ConfigUrlService();
                string           routeProxy       = $"{configUrlService.GetProxy()}{page.Route}";
                PageViewModel    pageViewModel    = new PageViewModel()
                {
                    RouteProxyLess = page.Route,
                    Route          = routeProxy,
                    LastModified   = page.LastModified,
                    PageId         = page.PageId
                };
                return(View(pageViewModel));
            }
            else
            {
                return(View(null));
            }
        }