Implements first stage library management system

This commit is contained in:
BinaryAlley committed 2024-11-03 19:43:46 +02:00
1 parent 5e0f94cd82
commit 36352ea9e8
291 files changed
+3733 -1384

No files matched your search

@@ -0,0 +1,27 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Entities.UsersManagement;
using Lumina.Contracts.Responses.UsersManagement.Users;
#endregion
namespace Lumina.Application.Common.Mapping.UsersManagement.Users;
/// <summary>
/// Extension methods for converting <see cref="UserEntity"/>.
/// </summary>
public static class UserEntityMapping
{
/// <summary>
/// Converts <paramref name="repositoryEntity"/> to <see cref="UserResponse"/>.
/// </summary>
/// <param name="repositoryEntity">The repository entity to be converted.</param>
/// <returns>The converted response entity.</returns>
public static UserResponse ToResponse(this UserEntity repositoryEntity)
{
return new UserResponse(
repositoryEntity.Id,
repositoryEntity.Username,
repositoryEntity.Created,
repositoryEntity.Updated
);
}
}