Command.cs 331 B

123456789101112131415
  1. using Application.Abstractions.Messaging;
  2. using SharedKernel.Results;
  3. namespace Application.Features.Api.Auth.Register;
  4. public sealed record Command(
  5. string Email,
  6. string Password,
  7. string? Name
  8. ) : ICommand<Result<RegisterResponse>>;
  9. public sealed record RegisterResponse(
  10. int Id,
  11. bool IsRegisterEmailAuth
  12. );