Пример #1
0
        public ActionResult GetWithoutPay()
        {
            IEnumerable <IPermEmployee> permEmp = _empOps.GetPermEmployees(false);
            IEnumerable <IEmployee>     tempEmp = _empOps.GetTempEmployees(false);

            var allEmp = new List <GetEmployeeWithoutPayViewModel>();

            permEmp.ToList().ForEach(x =>
            {
                allEmp.Add(empFactory.GetEmployeeWithoutPayVMFromEmployee(x, true));
            });

            tempEmp.ToList().ForEach(x =>
            {
                allEmp.Add(empFactory.GetEmployeeWithoutPayVMFromEmployee(x));
            });

            return(View(allEmp));
        }