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
     });
 }
 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
     });
 }
 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
     });
 }
 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
     });
 }