public bool SaveSalaryPayment(SalaryPayment salaryPayment) { //throw new NotImplementedException(); ISalaryPaymentDAL dAL = new SalaryPaymentDAL(); if (dAL.QueryById(salaryPayment.Id) != null) { if (dAL.Update(salaryPayment) > 0) { return(true); } else { return(false); } } else { if (dAL.Add(salaryPayment) > 0) { return(true); } else { return(false); } } }
public List <SalaryPayment> GetAllSalaryPaymentWaitReg() { //throw new NotImplementedException(); ISalaryPaymentDAL dAL = new SalaryPaymentDAL(); return(dAL.GetAllSalaryPaymentWaitReg()); }
public SalaryPayment GetSalaryPaymentById(int id) { //throw new NotImplementedException(); ISalaryPaymentDAL dAL = new SalaryPaymentDAL(); return(dAL.QueryById(id)); }
public List <SalaryPayment> GetAllSalaryPaymentFromDB() { //throw new NotImplementedException(); ISalaryPaymentDAL dAL = new SalaryPaymentDAL(); return(dAL.Query()); }