mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Adds client side dialogs
This commit is contained in:
1 parent
b2acd9653b
commit
891aeb3281
46 files changed
+1013
-21
No files matched your search
@@ -15,6 +15,7 @@ public static partial class Errors
|
||||
public static Error AdminAccountAlreadyCreated => Error.Conflict(description: nameof(AdminAccountAlreadyCreated));
|
||||
public static Error AdminAccountNotFound => Error.NotFound(description: nameof(AdminAccountNotFound));
|
||||
public static Error AdminRoleNotFound => Error.NotFound(description: nameof(AdminRoleNotFound));
|
||||
public static Error AdminRoleCannotBeDeleted => Error.Forbidden(description: nameof(AdminRoleCannotBeDeleted));
|
||||
public static Error RoleNotFound => Error.NotFound(description: nameof(RoleNotFound));
|
||||
public static Error PermissionAlreadyExists => Error.Unauthorized(description: nameof(PermissionAlreadyExists));
|
||||
public static Error RoleAlreadyExists => Error.Conflict(description: nameof(RoleAlreadyExists));
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Common.DataAccess.Entities.UsersManagement;
|
||||
using Lumina.Contracts.Responses.UsersManagement.Users;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.Mapping.UsersManagement.Users;
|
||||
@@ -24,4 +26,14 @@ public static class UserEntityMapping
|
||||
repositoryEntity.UpdatedOnUtc
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts <paramref name="repositoryEntities"/> to a collection of <see cref="UserResponse"/>.
|
||||
/// </summary>
|
||||
/// <param name="repositoryEntities">The repository entities to be converted.</param>
|
||||
/// <returns>The converted responses.</returns>
|
||||
public static IEnumerable<UserResponse> ToResponses(this IEnumerable<UserEntity> repositoryEntities)
|
||||
{
|
||||
return repositoryEntities.Select(role => role.ToResponse());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user