mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Adds initial ASP.NET Core MVC replacement for Blazor WASM
This commit is contained in:
1 parent
5409200c7a
commit
193861c9c5
56 files changed
+505
-4139
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Responses.FileManagement;
|
||||
using Lumina.Domain.Core.Aggregates.FileManagement.FileManagementAggregate.ValueObjects;
|
||||
using Mapster;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.Mapping.FileManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Mapping configuration for file system thumbnails between the domain object and the presentation object.
|
||||
/// </summary>
|
||||
public class ThumbnailMappingConfig : IRegister
|
||||
{
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Registers the mapping configuration.
|
||||
/// </summary>
|
||||
/// <param name="config">The type adapter configuration.</param>
|
||||
public void Register(TypeAdapterConfig config)
|
||||
{
|
||||
config.NewConfig<Thumbnail, ThumbnailResponse>()
|
||||
.Map(dest => dest.Type, src => src.Type)
|
||||
.Map(dest => dest.Bytes, src => src.Bytes)
|
||||
.MapToConstructor(true);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user