Adds authorization roles administrator dashboard

This commit is contained in:
BinaryAlley committed 2024-12-18 13:12:42 +02:00
1 parent 290af03c83
commit 1df31515fb
191 files changed
+6189 -806

No files matched your search

@@ -0,0 +1,26 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Core.Admin.Authorization.Roles.Commands.UpdateRole;
using Lumina.Contracts.Requests.Authorization;
#endregion
namespace Lumina.Application.Common.Mapping.Authorization;
/// <summary>
/// Extension methods for converting <see cref="UpdateRoleRequest"/>.
/// </summary>
public static class UpdateRoleRequestMapping
{
/// <summary>
/// Converts <paramref name="request"/> to <see cref="UpdateRoleCommand"/>.
/// </summary>
/// <param name="request">The request to be converted.</param>
/// <returns>The converted command.</returns>
public static UpdateRoleCommand ToCommand(this UpdateRoleRequest request)
{
return new UpdateRoleCommand(
request.RoleId!.Value,
request.RoleName!,
request.Permissions!
);
}
}