public EmployeeType(EmployeeType employeeType) { if (employeeType == null) { throw new ArgumentNullException(nameof(employeeType)); } EmployeeTypeId = employeeType.EmployeeTypeId; EmployeeTypeCode = employeeType.EmployeeTypeCode; EmployeeTypeCategory = employeeType.EmployeeTypeCategory; EmployeeTypeName = employeeType.EmployeeTypeName; EmployeeTypeDesc = employeeType.EmployeeTypeDesc; }
public Employee(Guid employeeId, Guid companyId, QIQOEmployeeType companyRoleType, string employeeCode, string employeeFirstName, string employeeLastName, string employeeMI, DateTime?employeeDOB, string employeeTitle, DateTime startDate, DateTime endDate, Guid parentEmployeeId, EmployeeType employeeType, List <Address> employeeAddresses, List <EntityAttribute> employeeAttributes, string comment) { EmployeeId = employeeId; CompanyId = companyId; CompanyRoleType = companyRoleType; EmployeeCode = employeeCode; EmployeeFirstName = employeeFirstName; EmployeeLastName = employeeLastName; EmployeeMI = employeeMI; EmployeeDOB = employeeDOB; EmployeeTitle = employeeTitle; StartDate = startDate; EndDate = endDate; ParentEmployeeId = parentEmployeeId; EmployeeType = employeeType; EmployeeAddresses = employeeAddresses; EmployeeAttributes = employeeAttributes; Comment = comment; }