Esempio n. 1
0
        public async Task <ActionResult> Test(String id)
        {
            // {path}/{action}/{id}
            var viewInfo = await _siteController.LoadView($"home/edit/{id}");

            // view from ~/Views.
            // viewInfo.View - view from ~/App_apps
            return(View(viewInfo.View));
        }
Esempio n. 2
0
        public async Task <ActionResult> Default(String pathInfo)
        {
            try
            {
                if (await _siteController.ProcessRequest(pathInfo, Request, Response))
                {
                    return(null);
                }

                var viewInfo = await _siteController.LoadView(pathInfo);

                return(View(viewInfo.View, viewInfo));
            }

            catch (Exception ex)
            {
                _siteController.WriteExceptionStatus(ex, Response);
            }
            return(null);
        }