Пример #1
0
        public bool AddEmployeeUserType(EmployeeUserType employeeUserType)
        {
            employeeUserType.NationalCode = this.NationalCode;
            EmployeeUserTypeDBAccess employeeUserTypeDBAccess = new EmployeeUserTypeDBAccess();

            if (employeeUserTypeDBAccess.Insert(employeeUserType) > 0)
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
        public bool AddEmployeeUserType(EmployeeUserType employeeUserType)
        {
            employeeUserType.UserTypeID = this.UserTypeID;
            EmployeeUserTypeDBAccess employeeUserTypeDBAccess = new EmployeeUserTypeDBAccess();

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