public static DNHSitemapAction AddNewDefaultAction(DNHSiteMap objSiteMap, string ActionName) { DNHSitemapAction myAction = new DNHSitemapAction() { CompanyID = objSiteMap.CompanyID, ID = objSiteMap.Access, RoleName = objSiteMap.RoleName, NodeID = objSiteMap.NodeID, ActionName = ActionName, Allow = true, Edit = false, CreatedUser = CurrentUser.UserName, CreatedDate = SystemConfig.CurrentDate, ScreenID = "" }; return(DNHSitemapActionManager.Add(myAction)); }