#region ========================================================================= USING ===================================================================================== using Lumina.Contracts.Entities.UsersManagement; using Lumina.Contracts.Responses.UsersManagement.Users; #endregion namespace Lumina.Application.Common.Mapping.UsersManagement.Users; /// /// Extension methods for converting . /// public static class UserEntityMapping { /// /// Converts to . /// /// The repository entity to be converted. /// The converted response entity. public static UserResponse ToResponse(this UserEntity repositoryEntity) { return new UserResponse( repositoryEntity.Id, repositoryEntity.Username, repositoryEntity.Created, repositoryEntity.Updated ); } }