Ejemplo n.º 1
0
        public ViewResult Error(string prmError)
        {
            ErrorViewModel evm = new ErrorViewModel();
            if (Request != null && Request.Url != null)
                evm.RefferalUrl = Request.Url.ToString();
            evm.Message = prmError;

            Logger.Log4Net.Logger<BaseController>.Error(prmError);

            return View("_Error", evm);
        }
Ejemplo n.º 2
0
        public ViewResult Error(Exception prmError)
        {
            ErrorViewModel evm = new ErrorViewModel();
            if(Request!=null && Request.Url!=null)
                evm.RefferalUrl = Request.Url.ToString();
            evm.Message = prmError.Message + "/" + prmError.Source + "/" + prmError.StackTrace;

            Logger.Log4Net.Logger<BaseController>.Error(prmError);

            return View("_Error", evm);
        }