Пример #1
0
        public Employee Create(Employee employee)
        {
            EEmployee eEmployee = EEmployee(employee);

            eEmployee = _iDEmployee.Create(eEmployee);
            return(Employee(eEmployee));
        }
Пример #2
0
        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));
        }
Пример #3
0
 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);
 }