public void Add(ProjectEmployeeDTO projectEmployeeDTO) { ProjectEmployee projectEmployee = Mapper.Map <ProjectEmployee>(projectEmployeeDTO); projectEmployee.Id = Guid.NewGuid(); _unitOfWork.ProjectEmployees.Create(projectEmployee); _unitOfWork.Save(); }
public void Create(Guid projectId, Guid employeeId) { ProjectEmployeeDTO projectEmployeeDTO = new ProjectEmployeeDTO { ProjectId = projectId, EmployeeId = employeeId }; this.Add(projectEmployeeDTO); }
public void Update(ProjectEmployeeDTO projectEmployeeDTO) { throw new NotImplementedException(); }