Beispiel #1
0
        public async Task <ActionResult> Log()
        {
            var _error = TempData["_error"] as ErrorLog;

            if (_error != null)
            {
                if (_error.Ex is HttpAntiForgeryException)
                {
                    return(Redirect(RegresarUrl));
                }

                var _vm = await _service.Log(Server, _error, Usuario);

                _vm.RegresarUrl = RegresarUrl;
                _vm.IsAjax      = Request.IsAjaxRequest();

                if (_vm.IsAjax)
                {
                    return(PartialView("_Ex", _vm));
                }

                return(View(_vm));
            }

            return(Redirect(AuthProvider.LoginUrl));
        }