public ActionResult DeptRequisition(string sessionId) { Employee emp = EmployeeService.GetUserBySessionId(sessionId); ViewData["sessionId"] = sessionId; ViewData["isRep"] = (emp.EmpRole == "REPRESENTATIVE"); List <Requisition> reqList = RequisitionService.GetRequisitionByDeptId(emp.DeptId); reqList.Sort((x, y) => DateTime.Compare(y.DateOfRequest, x.DateOfRequest)); return(View(reqList)); }