#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Themes;
using Lumina.Contracts.Responses.Themes;
#endregion
namespace Lumina.Application.Common.Mapping.Themes;
///
/// Extension methods for converting .
///
public static class ThemeEntityMapping
{
///
/// Converts to .
///
/// The repository entity to be converted.
/// The converted response.
public static ThemeResponse ToResponse(this ThemeEntity theme)
{
return new ThemeResponse(
theme.Id,
theme.ThemeId,
theme.Name,
theme.Description,
theme.Author,
theme.Version,
theme.PreviewPath,
theme.InstallSource,
theme.IsCurrent,
theme.InstalledAtUtc);
}
}