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