예제 #1
0
 /// <summary>
 /// Adds an employee to the database through the DAL class.
 /// </summary>
 /// <param name="employee">Employee</param>
 public Boolean RegisterEmployee(Employee employee)
 {
     return(EmployeeDBDAL.RegisterEmployee(employee));
 }
예제 #2
0
 /// <summary>
 /// Updates the employee in the employee table.
 /// </summary>
 /// <param name="employee">Employee object</param>
 /// <returns>true if employee is updated successfully</returns>
 public static bool UpdateEmployee(Employee employee)
 {
     return(EmployeeDBDAL.UpdateEmployee(employee));
 }
예제 #3
0
 /// <summary>
 /// Class controller
 /// </summary>
 public EmployeeController()
 {
     this.employeeDBDAL = new EmployeeDBDAL();
 }