public ActionResult History() { int empCode = Convert.ToInt32(Session["EmpCode"]); ListOfDatas(empCode); IEnumerable <EmployeeJobHistoryDTO> res = _jobHistoryService.GetAllHistoryOfEmployee(empCode); return(View(res)); }
public ActionResult History(int empCode) { if (!ViewBag.AllowView) { ViewBag.Error = "You are not Authorize to use this Page"; return(PartialView("_partialviewNotFound")); } ListOfDatas(empCode); List <EmployeeJobHistoryDTO> res = _jobHistoryService.GetAllHistoryOfEmployee(empCode); return(View("History/Index", res)); }