public async Task <IActionResult> PersistUserTestResult(SaveUserTestResult command) => (await Mediator.Send(command)) .Match(_ => Ok(), Error);
public UserTestResult(SaveUserTestResult command) { UserIdentifier = command.UserIdentifier; ResultStatistics = command.TestStats; AnswersCollection = command.TestAnswers; }