예제 #1
0
 FromEntity(Services.Models.Publication.Languages entity)
 {
     return(new LanguagesModel {
         Id = entity.Id,
         _language = entity.Language,
         _assets = AssetsModel.FromEntityList(entity.Assets)
     });
 }
예제 #2
0
 FromEntity(Services.Models.Publication.Publication entity)
 {
     return(new PublicationModel {
         Id = entity.Id,
         _publicationName = entity.PublicationName,
         _editions = EditionsModel.FromEntityList(entity.Editions),
         _assets = AssetsModel.FromEntityList(entity.Assets),
         _publicationId = entity.PublicationId,
         _assetType = entity.AssetType,
         _internalDescription = entity.InternalDescription,
         _externalDescription = entity.ExternalDescription,
         _publishingUnit = entity.PublishingUnit,
         _creationDate = entity.CreationDate,
         _modifyDate = entity.ModifyDate
     });
 }