/// <summary> /// satff performance /// </summary> /// <createdby>Rohit k</createdby> /// <createdDate>12 nov 2013</createdDate> /// <returns>view StaffPerformance with model data</returns> public ActionResult StaffPerformance() { 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.staffPerformanceLst = objDecisionPointEngine.GetStaffPerformanceList(userId, companyId).ToList(); communicationModel.pagesize = communicationModel.staffPerformanceLst.Count(); communicationModel.rowperpage = Convert.ToInt32(ConfigurationManager.AppSettings["rowperpage"], CultureInfo.InvariantCulture); return(View("StaffPerformance", 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()); } }