Add SUPER simulation review sample
This commit is contained in:
@@ -33,6 +33,14 @@ public class ExamSimulationsController(ExamSimulationStore simulations) : Contro
|
||||
catch (InvalidOperationException exception) { return Conflict(exception.Message); }
|
||||
}
|
||||
|
||||
[HttpPost("sample-completed")]
|
||||
[Authorize(Roles = "SUPER")]
|
||||
public async Task<IActionResult> CreateSampleCompleted()
|
||||
{
|
||||
try { return Ok(ExamSimulationStore.ToHistorySummary(await simulations.CreateSampleCompletedAsync(UserId()))); }
|
||||
catch (InvalidOperationException exception) { return Conflict(exception.Message); }
|
||||
}
|
||||
|
||||
[HttpGet("active")]
|
||||
public async Task<IActionResult> Active()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user