#region ========================================================================= USING ===================================================================================== using Lumina.Contracts.Responses.FileSystemManagement.Thumbnails; using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.ValueObjects; #endregion namespace Lumina.Application.Common.Mapping.FileSystemManagement.Thumbnails; /// /// Extension methods for converting . /// public static class ThumbnailMapping { /// /// Converts to . /// /// The domain entity to be converted. /// The converted response. public static ThumbnailResponse ToResponse(this Thumbnail domainEntity) { return new ThumbnailResponse( domainEntity.Type, domainEntity.Bytes ); } }