コード例 #1
0
        public ActionResult Index()
        {
            ViewBag.Employees        = CommonService.GetEmployeePromotionView().OrderBy(item => - item.RecommendationStatus);
            ViewBag.SalaryComponents = SalaryComponentsService.GetAll();

            return(View());
        }
コード例 #2
0
        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());
        }