コード例 #1
0
 /// <summary>
 ///Updates the employee record by id
 /// </summary>
 /// <param name="employee"></param>
 /// <returns></returns>
 public int EditEmployeeById(EmployeeDTO employee)
 {
     return(_repository.EditEmployee(employee.EmployeeDTOtoModel()));
 }
コード例 #2
0
 /// <summary>
 /// Adds new employee to the Employee table
 /// </summary>
 /// <param name="employee"></param>
 /// <returns></returns>
 public int AddNewEmployee(EmployeeDTO employee)
 {
     return(_repository.AddEmployee(employee.EmployeeDTOtoModel()));
 }