예제 #1
0
        public async Task <IActionResult> PatchPasswordResetAsync([FromRoute] ObjectId id, [FromBody] PatchPasswordModel model, CancellationToken cancellationToken)
        {
            await fSender.Send(new PatchPasswordResetRequest(id, model), cancellationToken);

            await fSender.Send(new DeleteLoginRequest(id), cancellationToken);

            await fPublisher.Publish(new LoggedOutNotification(id), cancellationToken);

            return(NoContent());
        }
 public PatchPasswordResetRequest(ObjectId userId, PatchPasswordModel model)
 {
     UserId = userId;
     Model  = model ?? throw new System.ArgumentNullException(nameof(model));
 }