Command.cs 304 B

123456789101112131415
  1. using MediatR;
  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. ) : IRequest<Result<RegisterResponse>>;
  9. public sealed record RegisterResponse(
  10. int Id,
  11. bool IsRegisterEmailAuth
  12. );