public static void Create_Layout(string linkProject)
        {
            var    doc = new HtmlWeb().Load(linkProject);
            String Html = "", head = "", header = "", footer = "", script = "";

            foreach (HtmlNode link in doc.DocumentNode.SelectNodes("//link"))
            {
                head += RenderActionResults.RenderHeader(link);
            }
            foreach (HtmlNode link in doc.DocumentNode.SelectNodes("//body"))
            {
                foreach (var node in link.ChildNodes)
                {
                    if (node.Name == "header")
                    {
                        header = header_renderHTML(node);
                    }
                    if (node.Name == "div")
                    {
                    }
                    if (node.Name == "footer")
                    {
                        footer = footer_renderHTML(node);
                    }
                    if (node.Name == "script")
                    {
                        script += script_renderHTML(node);
                    }
                }
            }
            Html = Layout_renderHTML(head, header, footer, script);
            FileFolder.File(Property.RacinePathViews + "/Shared/_Layout.cshtml", Html);
        }
 public static String header_renderHTML(HtmlNode header)
 {
     foreach (var ChildNode in header.ChildNodes)
     {
         RenderActionResults.ChildNodes_DIV(ChildNode);
     }
     return(header.OuterHtml + Environment.NewLine);
 }
        private static string GetPageCodeJs(string link)
        {
            var doclink = new HtmlWeb().Load(link);

            string script = "";

            foreach (HtmlNode linkscript in doclink.DocumentNode.SelectNodes("//script"))
            {
                script += RenderActionResults.RenderHeaderScript(linkscript);
            }
            return(script);
        }
        public void Create_Folder_ActionResult()
        {
            var urlViews = Property.RacinePathContent + "/" + Property.ASPModel.NameProject + "/Views";

            Property.RacinePathViews = urlViews;
            FileFolder.Folder(urlViews);
            foreach (var controller in Property.ASPModel.Controllers)
            {
                FileFolder.Folder(urlViews + "/" + controller.Name);
                RenderActionResults.Create_View(controller.Name, controller.actionResults);
            }
        }
        private static string GetPageCodeCss(string link)
        {
            List <HtmlNode> HtmlNode = new List <HtmlNode>();
            var             doclink  = new HtmlWeb().Load(link);
            string          head     = "";

            foreach (HtmlNode linkscript in doclink.DocumentNode.SelectNodes("//link"))
            {
                head += RenderActionResults.RenderHeaderStyle(linkscript);
            }
            return(head);
        }