Ejemplo n.º 1
0
        public async Task <PartialViewResult> Search(PlatformConstant[] platform, int[] environment, PciScopeConstant[] securityClass,
                                                     NodeComplianceSearchTypeConstant[] compliance, NodeSearchTypeConstant searchType, string search, bool?hideProductExclusions, int?pageIndex, bool?showButtons)
        {
            var timeZoneCookie = Request.Cookies["_timeZoneOffset"];

            if (timeZoneCookie != null)
            {
                ViewBag.TimeOffset = Convert.ToInt32(timeZoneCookie);
            }

            return(PartialView(await _nodeFactory.Search(platform, environment, securityClass, compliance, searchType, search, hideProductExclusions.GetValueOrDefault(), UserSecurity, pageIndex.GetValueOrDefault(), showButtons.GetValueOrDefault())));
        }
 public async Task <PartialViewResult> Search(PlatformConstant[] platform, int[] environment, PciScopeConstant[] securityClass,
                                              NodeComplianceSearchTypeConstant[] compliance, NodeSearchTypeConstant searchType, string search, bool?hideProductExclusions, int?pageIndex, bool?showButtons)
 {
     return(PartialView(await _nodeFactory.Search(platform, environment, securityClass, compliance, searchType, search, hideProductExclusions.GetValueOrDefault(), UserSecurity, pageIndex.GetValueOrDefault(), showButtons.GetValueOrDefault())));
 }