Пример #1
0
        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));
        }