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