public static void CopyToEntity(this DT.AssignedProjectResource source, DA.AssignedProjectResource target) { if ((source == null) || (target == null)) { return; } target.ProjectId = source.ProjectId; target.ResourceId = source.ResourceId; }
public static DA.AssignedProjectResource ToEntity(this DT.AssignedProjectResource source) { if (source == null) { return(null); } var result = new DA.AssignedProjectResource(); source.CopyToEntity(result); return(result); }
public static DT.AssignedProjectResource ToDto(this DA.AssignedProjectResource source) { if (source == null) { return(null); } return(new DT.AssignedProjectResource { ProjectId = source.ProjectId, ResourceId = source.ResourceId }); }