/// <summary> /// ICCompliance /// </summary> /// <createdby>Mamta gupta</createdby> /// <createdDate>12 mar 2014</createdDate> /// <returns>view of actionresult</returns> public ActionResult ICCompliance() { 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))) { return(RedirectToAction("Login", "Login")); } else { userId = Convert.ToInt32(Session["UserId"], CultureInfo.InvariantCulture); companyId = Convert.ToString(Session["CompanyId"], CultureInfo.InvariantCulture); objDecisionPointEngine = new DecisionPointEngine(); CommunicationModel communicationModel = new CommunicationModel(); communicationModel.ICPerformanceLst = objDecisionPointEngine.GetICPerformanceList(userId, companyId).ToList(); if (!object.Equals(communicationModel.ICPerformanceLst, null)) { communicationModel.pagesize = communicationModel.ICPerformanceLst.Count();; } communicationModel.rowperpage = Convert.ToInt32(ConfigurationManager.AppSettings["rowperpage"], CultureInfo.InvariantCulture); return(View("ICCompliance", communicationModel)); } } catch (Exception ex) { log.ErrorFormat(DecisionPointR.logmessageerror, ex.ToString(), typeof(LoginController).Name, MethodBase.GetCurrentMethod().Name); throw; } finally { logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, DecisionPointR.logmessagend, MethodBase.GetCurrentMethod().Name)); log.Info(logMessage.ToString()); } }