public async Task <NoContentResult> PutPasswordAsync([FromBody] PutPasswordModel model, CancellationToken cancellationToken) { await fSender.Send(new PutPasswordRequest(model), cancellationToken); await fSender.Send(new LogoutRequest(), cancellationToken); await fPublisher.Publish(new LoggedOutNotification(), cancellationToken); return(NoContent()); }
public PutPasswordRequest(PutPasswordModel model) { Model = model ?? throw new System.ArgumentNullException(nameof(model)); }