コード例 #1
0
        public async Task <IActionResult> Index(string strMessage = "")
        {
            ViewBag.Message = strMessage;
            _idAldakinUser  = await _IApplicationUserAldakin.GetIdUserAldakin(HttpContext.User);

            var oReturn = await _ILoadIndexController.LoadUdObraPresuAsync(_idAldakinUser);

            if (oReturn.bLevelError)
            {
                return(RedirectToAction("Index", "Home", new { strMessage = "No tiene permiso de acceso a la página" }));
            }
            return(View(oReturn));
        }