public ActionResult Index() { ViewBag.Employees = CommonService.GetEmployeePromotionView().OrderBy(item => - item.RecommendationStatus); ViewBag.SalaryComponents = SalaryComponentsService.GetAll(); return(View()); }
public ActionResult Index() { IEnumerable <EmployeePromotion> employeePromotions = CommonService.GetEmployeePromotionView().OrderBy(item => - item.RecommendationStatus); int currentUserId = Int32.Parse(Session["Id"].ToString()); employeePromotions = employeePromotions.Where(e => e.EmployeeId != currentUserId); ViewBag.Employees = employeePromotions; ViewBag.SalaryComponents = SalaryComponentsService.GetAll(); return(View()); }