Esempio n. 1
0
        public DigitalAssetDto(Coywolf.Models.DigitalAsset entity, bool includeRelatedEntities = false)
        {
            Id           = entity.Id;
            Name         = entity.Name;
            FileName     = entity.FileName;
            Description  = entity.Description;
            Created      = entity.Created;
            FileModified = entity.FileModified;
            Size         = entity.Size;
            ContentType  = entity.ContentType;
            RelativePath = entity.RelativePath;

            if (includeRelatedEntities)
            {
                Galleries = entity.PhotoGalleryDigitalAssets.Select(x => new PhotoGalleryDto(x.PhotoGallery)).ToList();
            }
        }
 public DigitalAssetAddOrUpdateResponseDto(Coywolf.Models.DigitalAsset entity)
     : base(entity)
 {
 }