You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
658 B
C#
24 lines
658 B
C#
using System;
|
|
using Expedience.Infrastructure.Models;
|
|
using Expedience.Web.Services;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace Expedience.Web.Pages
|
|
{
|
|
public class DeepDungeonsModel : PageModel
|
|
{
|
|
private readonly IApiService _apiService;
|
|
|
|
public List<DeepDungeonRecord>? DeepDungeonRecords { get; private set; }
|
|
|
|
public DeepDungeonsModel(IApiService apiService)
|
|
{
|
|
_apiService = apiService;
|
|
}
|
|
|
|
public async Task OnGet(CancellationToken cancellationToken)
|
|
{
|
|
DeepDungeonRecords = await _apiService.GetDeepDungeonRecordsAsync(cancellationToken);
|
|
}
|
|
}
|
|
} |