Пример #1
0
 public void Add(Employee employee)
 {
     if (employee == null)
     {
         throw new ArgumentException("пользователь");
     }
     employeesDAO.Add(employee);
 }
Пример #2
0
        public void Add(EmployeeViewModel employee)
        {
            EmployeeModel toTransfer = employee.AsEmployeeModel();

            employeeDataAccessObject.Add(toTransfer);
        }