misc
This commit is contained in:
parent
fbc6f562e3
commit
d7e0c59559
31 changed files with 249 additions and 57 deletions
|
@ -1,15 +0,0 @@
|
|||
using Femto.Common.Domain;
|
||||
using Femto.Modules.Auth.Data;
|
||||
using Femto.Modules.Auth.Models;
|
||||
|
||||
namespace Femto.Modules.Auth.Application.Commands.CreateSignupCode;
|
||||
|
||||
internal class CreateSignupCodeCommandHandler(AuthContext context) : ICommandHandler<CreateSignupCodeCommand>
|
||||
{
|
||||
public async Task Handle(CreateSignupCodeCommand command, CancellationToken cancellationToken)
|
||||
{
|
||||
var code = new SignupCode(command.RecipientEmail, command.RecipientName, command.Code);
|
||||
|
||||
await context.SignupCodes.AddAsync(code, cancellationToken);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue