Exemplo n.º 1
0
        public ActionResult RemoveComponent(string bId, int scId)
        {
            List <EmployeeSalaryViewModel> models = EmployeeSalaryRepo.GetByBadgeId(bId, scId);

            if (models.Count > 0)
            {
                EmployeeSalaryViewModel model = models[0];
                return(PartialView("_RemoveComponent", model));
            }
            return(PartialView("_RemoveComponent", new EmployeeSalaryViewModel()));
        }
Exemplo n.º 2
0
        public ActionResult EmployeePayroll(string badgeId)
        {
            List <EmployeeSalaryViewModel> empSalary = EmployeeSalaryRepo.GetByBadgeId(badgeId);

            return(PartialView("_EmployeePayroll", empSalary));
        }