public bool AddOfficialEmployeeReward(OfficialEmployeeReward officialEmployeeReward) { officialEmployeeReward.NationalCode = this.NationalCode; OfficialEmployeeRewardDBAccess officialEmployeeRewardDBAccess = new OfficialEmployeeRewardDBAccess(); if (officialEmployeeRewardDBAccess.Insert(officialEmployeeReward) > 0) { return(true); } return(false); }
public bool AddOfficialEmployeeReward(OfficialEmployeeReward officialEmployeeReward) { officialEmployeeReward.MonthTypeID = this.MonthTypeID; OfficialEmployeeRewardDBAccess officialEmployeeRewardDBAccess = new OfficialEmployeeRewardDBAccess(); if (officialEmployeeRewardDBAccess.Insert(officialEmployeeReward) > 0) { return(true); } return(false); }
// 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)); }
public bool Exists(OfficialEmployeeReward officialEmployeeReward) { return(officialEmployeeRewardDb.Exists(officialEmployeeReward)); }
// 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)); }
// 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)); }