Esempio n. 1
0
        public bool AddEmployee(Employee employee)
        {
            employee.RoleTypeID = this.RoleTypeID;
            EmployeeDBAccess employeeDBAccess = new EmployeeDBAccess();

            if (employeeDBAccess.Insert(employee) > 0)
            {
                return(true);
            }
            return(false);
        }
 // This fuction does not contain any business logic, it simply returns the
 // list of employees, we can put some logic here if needed
 public Int64 Insert(Employee employee)
 {
     return(employeeDb.Insert(employee));
 }