/// <summary> ///Updates the employee record by id /// </summary> /// <param name="employee"></param> /// <returns></returns> public int EditEmployeeById(EmployeeDTO employee) { return(_repository.EditEmployee(employee.EmployeeDTOtoModel())); }
/// <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())); }