Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
        public List <SalaryPayment> GetAllSalaryPaymentWaitReg()
        {
            //throw new NotImplementedException();

            ISalaryPaymentDAL dAL = new SalaryPaymentDAL();

            return(dAL.GetAllSalaryPaymentWaitReg());
        }
Exemple #3
0
        public SalaryPayment GetSalaryPaymentById(int id)
        {
            //throw new NotImplementedException();

            ISalaryPaymentDAL dAL = new SalaryPaymentDAL();

            return(dAL.QueryById(id));
        }
Exemple #4
0
        public List <SalaryPayment> GetAllSalaryPaymentFromDB()
        {
            //throw new NotImplementedException();

            ISalaryPaymentDAL dAL = new SalaryPaymentDAL();

            return(dAL.Query());
        }