예제 #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);
 }