public IActionResult Index(string categoryCode = "", string headerCode = "", int pageNumber = 1) { _logger.LogDebug("Home>Index"); if (headerCode != "") { return(View(_headerService.GetHeaderPosts(HttpContext.User, headerCode, categoryCode, pageNumber))); } else if (categoryCode != "") { return(View(_headerService.GetPopularHeaders(HttpContext.User, categoryCode))); } else { return(View(_headerService.GetPopularHeaders(HttpContext.User))); } }