public async Task <IActionResult> Index(string strMessage = "", string strDate = "", string strDate1 = "", string strEntity = "", string strAction = "", string strOt = "", string strWorker = "", string strListValidation = "") { ViewBag.Message = strMessage; _idAldakinUser = await _iApplicationUserAldakin.GetIdUserAldakin(HttpContext.User); var oView = await _iLoadIndexController.LoadSearchControllerAsync(_idAldakinUser, strDate, strDate1, strEntity, strAction, strOt, strWorker, strListValidation); if (!(string.IsNullOrEmpty(oView.strError))) { ViewBag.Message = oView.strError; } if (oView.bLevelError) { return(RedirectToAction("Index", "Home", new { strMessage = "No tiene permiso de acceso a la página" })); } return(View(oView)); }