コード例 #1
0
 public static ProjectEmployeeDto Map(ProjectEmployee addEmployee)
 {
     return(new ProjectEmployeeDto
     {
         Id = addEmployee.Id,
         EmployeeID = addEmployee.EmployeeID,
         EstWorkingHours = addEmployee.EstWorkingHours,
         Employee = EmployeeMapper.Map(addEmployee.Employee),
         ProjectId = addEmployee.ProjectId
     });
 }
コード例 #2
0
 public static ProjectEmployee Map(ProjectEmployeeDto dto)
 {
     return(new ProjectEmployee
     {
         Id = dto.Id,
         EmployeeID = dto.EmployeeID,
         EstWorkingHours = dto.EstWorkingHours,
         Employee = EmployeeMapper.Map(dto.Employee),
         ProjectId = dto.ProjectId
     });
 }
コード例 #3
0
 public static ProjectDrivingDto Map(ProjectDriving projectDriving)
 {
     return(new ProjectDrivingDto
     {
         Id = projectDriving.Id,
         Amount = projectDriving.Amount,
         UnitPrice = projectDriving.UnitPrice,
         EmployeeId = projectDriving.EmployeeID,
         Employee = EmployeeMapper.Map(projectDriving.Employee),
         ProjectId = projectDriving.ProjectId
     });
 }
コード例 #4
0
 public static ProjectDriving Map(ProjectDrivingDto dto)
 {
     return(new ProjectDriving
     {
         Id = dto.Id,
         Amount = dto.Amount,
         UnitPrice = dto.UnitPrice,
         EmployeeID = dto.EmployeeId,
         Employee = EmployeeMapper.Map(dto.Employee),
         ProjectId = dto.ProjectId
     });
 }
コード例 #5
0
 public static WorkingHoursDto Map(WorkingHours workingHours)
 {
     return(new WorkingHoursDto
     {
         Id = workingHours.Id,
         Amount = workingHours.Amount,
         EmployeeId = workingHours.EmployeeID,
         HourlyPrice = workingHours.HourlyPrice,
         Employee = EmployeeMapper.Map(workingHours.Employee),
         ProjectId = workingHours.ProjectId
     });
 }
コード例 #6
0
 public static WorkingHours Map(WorkingHoursDto dto)
 {
     return(new WorkingHours
     {
         Id = dto.Id,
         Amount = dto.Amount,
         EmployeeID = dto.EmployeeId,
         HourlyPrice = dto.HourlyPrice,
         Employee = EmployeeMapper.Map(dto.Employee),
         ProjectId = dto.ProjectId
     });
 }
コード例 #7
0
 public static EmployeeDto Map(Employee model)
 {
     if (model == null)
     {
         return(null);
     }
     return(new EmployeeDto
     {
         Id = model.Id,
         Name = model.Name,
         Phone = model.Phone,
         Active = model.Active,
         Specialty = SpecialtyMapper.Map(model.Specialty),
         Type = TypeMapper.Map(model.Type),
         ManagerID = model.ManagerID,
         Manager = EmployeeMapper.Map(model.Manager),
         Department = DepartmentMapper.Map(model.Department),
         RowVersion = model.RowVersion,
     });
 }
コード例 #8
0
 public static Employee Map(EmployeeDto dto)
 {
     if (dto == null)
     {
         return(null);
     }
     return(new Employee
     {
         Id = dto.Id,
         Name = dto.Name,
         Phone = dto.Phone,
         Active = dto.Active,
         Specialty = SpecialtyMapper.Map(dto.Specialty),
         Type = TypeMapper.Map(dto.Type),
         ManagerID = dto.ManagerID,
         Manager = EmployeeMapper.Map(dto.Manager),
         Department = DepartmentMapper.Map(dto.Department),
         RowVersion = dto.RowVersion
     });
 }