Пример #1
0
        public bool AddOfficialEmployeeReward(OfficialEmployeeReward officialEmployeeReward)
        {
            officialEmployeeReward.NationalCode = this.NationalCode;
            OfficialEmployeeRewardDBAccess officialEmployeeRewardDBAccess = new OfficialEmployeeRewardDBAccess();

            if (officialEmployeeRewardDBAccess.Insert(officialEmployeeReward) > 0)
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
        public bool AddOfficialEmployeeReward(OfficialEmployeeReward officialEmployeeReward)
        {
            officialEmployeeReward.MonthTypeID = this.MonthTypeID;
            OfficialEmployeeRewardDBAccess officialEmployeeRewardDBAccess = new OfficialEmployeeRewardDBAccess();

            if (officialEmployeeRewardDBAccess.Insert(officialEmployeeReward) > 0)
            {
                return(true);
            }
            return(false);
        }
Пример #3
0
 // This fuction does not contain any business logic, it simply returns the
 // list of officialEmployeeRewards, we can put some logic here if needed
 public List <OfficialEmployeeReward> SearchLike(OfficialEmployeeReward officialEmployeeReward)
 {
     return(officialEmployeeRewardDb.SearchLike(officialEmployeeReward));
 }
Пример #4
0
 public bool Exists(OfficialEmployeeReward officialEmployeeReward)
 {
     return(officialEmployeeRewardDb.Exists(officialEmployeeReward));
 }
Пример #5
0
 // This fuction does not contain any business logic, it simply returns the
 // list of officialEmployeeRewards, we can put some logic here if needed
 public Int64 Insert(OfficialEmployeeReward officialEmployeeReward)
 {
     return(officialEmployeeRewardDb.Insert(officialEmployeeReward));
 }
Пример #6
0
 // This fuction does not contain any business logic, it simply returns the
 // list of officialEmployeeRewards, we can put some logic here if needed
 public bool Update(OfficialEmployeeReward officialEmployeeReward)
 {
     return(officialEmployeeRewardDb.Update(officialEmployeeReward));
 }