예제 #1
0
 public static PortalEntity Map(PortalItem source, PortalEntity target)
 {
     target.Name         = source.Name;
     target.Uri          = source.Uri;
     target.Domain       = source.Domain;
     target.Description  = source.Description;
     target.GATrackingId = source.GATrackingId;
     target.ModifiedDate = DateTime.UtcNow;
     return(target);
 }
예제 #2
0
 public static PortalItem Map(PortalEntity source, PortalItem target)
 {
     target.Id           = source.Id;
     target.Name         = source.Name;
     target.Uri          = source.Uri;
     target.Domain       = source.Domain;
     target.Description  = source.Description;
     target.GATrackingId = source.GATrackingId;
     target.CreatedDate  = source.CreatedDate;
     target.ModifiedDate = source.ModifiedDate;
     return(target);
 }