Exemplo n.º 1
0
        private EmployeeModel GetEmployeeModel(RawEmployeeModel employeeRawData)
        {
            var employeeModel = new EmployeeModel
            {
                EmployeeId  = employeeRawData.EmployeeId,
                FirstName   = employeeRawData.FirstName,
                HomeState   = employeeRawData.HomeState,
                HoursWorked = ParseService.ParseInt(employeeRawData.HoursWorked, "Hours Worked"),
                LastName    = employeeRawData.LastName,
                PayType     = GetPayType(employeeRawData.PayType),
                Salary      = ParseService.ParseDecimal(employeeRawData.Salary, "Salary"),
                StartDate   = ParseService.ParseStartDate(employeeRawData.StartDate)
            };

            return(employeeModel);
        }
Exemplo n.º 2
0
 public EmployeeService(ParseService ParseService, DocumentService DocumentService)
 {
     this.ParseService    = ParseService;
     this.DocumentService = DocumentService;
 }