public void Add(Employee employee) { if (employee == null) { throw new ArgumentException("пользователь"); } employeesDAO.Add(employee); }
public void Add(EmployeeViewModel employee) { EmployeeModel toTransfer = employee.AsEmployeeModel(); employeeDataAccessObject.Add(toTransfer); }