mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-06-29 18:21:08 +00:00
21 lines
491 B
C#
21 lines
491 B
C#
using System;
|
|
|
|
namespace CleanArchitecture.Domain.Commands.Users.DeleteUser;
|
|
|
|
public sealed class DeleteUserCommand : CommandBase
|
|
{
|
|
private static readonly DeleteUserCommandValidation _validation = new();
|
|
|
|
public Guid UserId { get; }
|
|
|
|
public DeleteUserCommand(Guid userId) : base(userId)
|
|
{
|
|
UserId = userId;
|
|
}
|
|
|
|
public override bool IsValid()
|
|
{
|
|
ValidationResult = _validation.Validate(this);
|
|
return ValidationResult.IsValid;
|
|
}
|
|
} |