/// <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)); }
/// <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)); }
/// <summary> /// Class controller /// </summary> public EmployeeController() { this.employeeDBDAL = new EmployeeDBDAL(); }