Ejemplo n.º 1
0
        public string GoToSterlingForScreening(SterlingModel objSterlingModel)
        {
            string sterlingResponseStatus = string.Empty;

            logMessage = new StringBuilder();
            try
            {
                logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, DecisionPointR.logmessagestart, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
                if (!string.IsNullOrEmpty(Convert.ToString(Session["UserId"], CultureInfo.InvariantCulture)))
                {
                }
                else
                {
                    RedirectToAction("Login", "Login");
                }
            }
            catch (Exception ex)
            {
                log.ErrorFormat(DecisionPointR.logmessageerror, ex.ToString(), typeof(UserDashBoardController).Name, MethodBase.GetCurrentMethod().Name);
            }
            finally
            {
                logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, DecisionPointR.logmessagend, MethodBase.GetCurrentMethod().Name));
                log.Info(logMessage.ToString());
            }
            return(sterlingResponseStatus);
        }
Ejemplo n.º 2
0
 public ActionResult ICSterlingReviewResult()
 {
     logMessage = new StringBuilder();
     try
     {
         if (!string.IsNullOrEmpty(Convert.ToString(Session["UserId"], CultureInfo.InvariantCulture)))
         {
             objSterlingModel = new SterlingModel();
             objSterlingModel.ICReviewResult = System.Configuration.ConfigurationManager.AppSettings["ICReviewResult"];
             ViewData.Model  = objSterlingModel;
             objactionResult = View();
         }
         else
         {
             objactionResult = RedirectToAction("Login", "Login");
         }
     }
     catch (Exception ex)
     {
         log.ErrorFormat("Error : {0}\n By : {1}-{2}", ex.ToString(), typeof(LoginController).Name, MethodBase.GetCurrentMethod().Name);
         objactionResult = RedirectToAction("Error", "Login", new { errorMsg = DecisionPointR.PageErrorMsg });
     }
     finally
     {
         logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, "End {0} function.", MethodBase.GetCurrentMethod().Name));
         log.Info(logMessage.ToString());
     }
     return(objactionResult);
 }