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())); }
public ActionResult EmployeePayroll(string badgeId) { List <EmployeeSalaryViewModel> empSalary = EmployeeSalaryRepo.GetByBadgeId(badgeId); return(PartialView("_EmployeePayroll", empSalary)); }