public IActionResult Index(string pidCampaign, string filterValues, bool deleteFilter, int pageIndex = 1, int pageSize = 10) { try { if (!string.IsNullOrEmpty(pidCampaign)) { SetSessionVariable("pidCampaign", pidCampaign); } else { pidCampaign = GetSessionVariable("pidCampaign"); } var filters = GetFilters(filterValues, deleteFilter); var idCampaign = Guid.Parse(CampaignController.Protector.Unprotect(pidCampaign)); var idAccount = ApplicationUserCurrent.AccountId; var model = _taskCampaignBusiness.GetPaginatedTasksList(idCampaign, idAccount, filters, pageIndex, pageSize); return(View(model)); } catch (Exception e) { _logger.LogError(new EventId(0, "Error Index"), e.Message); return(RedirectToAction("Index", "StatusCode", new { statusCode = 1 })); } }