Table of Contents

Class CreateRoleCommand

Namespace
KadicAuth.Application.Roles.Commands
Assembly
KadicAuth.Application.dll
public sealed record CreateRoleCommand : IRequest<Result<Guid>>, IBaseRequest
Inheritance
object
CreateRoleCommand
Implements
IRequest<Result<Guid>>
IBaseRequest

Constructors

CreateRoleCommand(Guid, string, string, string?, IEnumerable<Guid>?)

public CreateRoleCommand(Guid TenantId, string Code, string Name, string? Description = null, IEnumerable<Guid>? PermissionIds = null)

Parameters

TenantId Guid
Code string
Name string
Description string
PermissionIds IEnumerable<Guid>

Properties

Code

public string Code { get; init; }

Property Value

string

Description

public string? Description { get; init; }

Property Value

string

Name

public string Name { get; init; }

Property Value

string

PermissionIds

public IEnumerable<Guid>? PermissionIds { get; init; }

Property Value

IEnumerable<Guid>

TenantId

public Guid TenantId { get; init; }

Property Value

Guid