|
|
|
|
@ -72,6 +72,26 @@ namespace Expedience.Api.Controllers
|
|
|
|
|
return StatusCode(500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet("DutyCompletionRecords/{expac}")]
|
|
|
|
|
public async Task<ActionResult> GetDutyCompletionRecords(string expac, CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
using var scope = _serviceScopeFactory.CreateScope();
|
|
|
|
|
var repository = scope.ServiceProvider.GetService<IExpedienceRepository>();
|
|
|
|
|
|
|
|
|
|
var results = await repository.GetDutyCompletionRecords(expac, cancellationToken);
|
|
|
|
|
return Ok(results);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
_logger.LogError(ex, "Error getting Duty Completion Records for {expac}: {errorMessage}", expac, ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return StatusCode(500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[HttpGet("DeepDungeonRecords")]
|
|
|
|
|
public async Task<ActionResult> GetDeepDungeonRecords(CancellationToken cancellationToken)
|
|
|
|
|
{
|
|
|
|
|
|