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