public Employee Create(Employee employee) { EEmployee eEmployee = EEmployee(employee); eEmployee = _iDEmployee.Create(eEmployee); return(Employee(eEmployee)); }
public Employee Create(int createdBy, Employee employee) { EEmployee eEmployee = EEmployee(employee); eEmployee.CreatedDate = DateTime.Now; eEmployee.CreatedBy = createdBy; eEmployee = _iDEmployee.Create(eEmployee); return(Employee(eEmployee)); }
public Employee Create(int createdBy, Employee employee) { if (_iDEmployee.Count <EEmployee>(a => a.EmployeeNumber == employee.EmployeeNumber) == 0) { EEmployee eEmployee = EEmployee(employee); eEmployee.CreatedDate = DateTime.Now; eEmployee.CreatedBy = createdBy; eEmployee = _iDEmployee.Create(eEmployee); return(Employee(eEmployee)); } return(employee); }