public void AddGroupEmp(PaySlipGroupEmp model) { var payslip = new PaySlipEmp(); payslip.EmpId = empService.GetByGroupId(model.GroupId).Select(p => p.Id).ToList(); payslip.Id = model.Id; AddListEmp(payslip); }
public void AddListEmp(PaySlipEmp model) { foreach (var item in model.EmpId) { var basicvm = new PaySlip() { EmployeeId = item, PayrollPeriodId = model.Id, }; Add(basicvm); } }
public ActionResult AddEmp(PaySlipEmp request) { payslipService.AddListEmp(request); return(Ok()); }
public void DeleteEmp(PaySlipEmp model) { }