示例#1
0
        public bool AddActivityUserType(ActivityUserType activityUserType)
        {
            activityUserType.ActivityTypeID = this.ActivityTypeID;
            ActivityUserTypeDBAccess activityUserTypeDBAccess = new ActivityUserTypeDBAccess();

            if (activityUserTypeDBAccess.Insert(activityUserType) > 0)
            {
                return(true);
            }
            return(false);
        }
 // This fuction does not contain any business logic, it simply returns the
 // list of activityUserTypes, we can put some logic here if needed
 public List <ActivityUserType> SearchLike(ActivityUserType activityUserType)
 {
     return(activityUserTypeDb.SearchLike(activityUserType));
 }
 // This fuction does not contain any business logic, it simply returns the
 // list of activityUserTypes, we can put some logic here if needed
 public Int64 Insert(ActivityUserType activityUserType)
 {
     return(activityUserTypeDb.Insert(activityUserType));
 }
 public bool Exists(ActivityUserType activityUserType)
 {
     return(activityUserTypeDb.Exists(activityUserType));
 }
 // This fuction does not contain any business logic, it simply returns the
 // list of activityUserTypes, we can put some logic here if needed
 public bool Update(ActivityUserType activityUserType)
 {
     return(activityUserTypeDb.Update(activityUserType));
 }