internal async Task <WebbuilderViewInfo> GetPageViewDOM(WebbuilderViewGetInfo webbuilderViewGetInfo)
 {
     try
     {
         List <SQLParam> sqlParam = new List <SQLParam>
         {
             new SQLParam("@Culture", webbuilderViewGetInfo.Culture),
             new SQLParam("@PageName", webbuilderViewGetInfo.PageName),
             new SQLParam("@SiteID", webbuilderViewGetInfo.SiteID)
         };
         SQLGetAsync sqlHelper = new SQLGetAsync();
         if (webbuilderViewGetInfo.PreviewMode)
         {
             return(await sqlHelper.ExecuteAsObjectAsync <WebbuilderViewInfo>("[usp_WebBuilder_GetViewDOMByID]", sqlParam));
         }
         else
         {
             return(await sqlHelper.ExecuteAsObjectAsync <WebbuilderViewInfo>("[usp_WebBuilder_GetPublishedViewDOMByID]", sqlParam));
         }
     }
     catch
     {
         throw;
     }
 }
        public async Task <WebbuilderViewInfo> GetPageViewDOM(WebbuilderViewGetInfo webbuilderViewGetInfo, ReuseableParams reuseableParams, int siteID)
        {
            WebBuilderDataProvider objDataProvider    = new WebBuilderDataProvider();
            WebbuilderViewInfo     webbuilderViewInfo = await objDataProvider.GetPageViewDOM(webbuilderViewGetInfo);

            if (webbuilderViewInfo != null)
            {
                List <ControllerDetail> lstApsExtraCompsInvoker = new List <ControllerDetail>();
                Task <string>           apiResultString         = APIStringResult(webbuilderViewGetInfo.PreviewMode, webbuilderViewGetInfo.PageName, reuseableParams, lstApsExtraCompsInvoker, siteID);
                Task <string>           appsExtraComponent      = GetAppsExtraComponent(lstApsExtraCompsInvoker, webbuilderViewGetInfo.PageName, siteID);
                //await Task.WhenAll(apiResultString, appsExtraComponent);
                webbuilderViewInfo.APIResultString    = await apiResultString;
                webbuilderViewInfo.AppsExtraComponent = await appsExtraComponent;
            }
            return(webbuilderViewInfo);
        }