mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2025-12-09 20:19:32 +02:00
29 lines
672 B
C#
29 lines
672 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using Microsoft.Extensions.Caching.Memory;
|
|
using yawaflua.ru.Models;
|
|
using yawaflua.ru.Models.Tables;
|
|
|
|
namespace yawaflua.ru.Pages
|
|
{
|
|
public class IndexModel : PageModel
|
|
{
|
|
private readonly ILogger<IndexModel> _logger;
|
|
public IMemoryCache cache;
|
|
public AppDbContext ctx;
|
|
public IndexModel(ILogger<IndexModel> logger, IMemoryCache cache, AppDbContext ctx)
|
|
{
|
|
_logger = logger;
|
|
this.cache = cache;
|
|
this.ctx = ctx;
|
|
}
|
|
|
|
public void OnGet()
|
|
{
|
|
|
|
Page();
|
|
|
|
}
|
|
|
|
}
|
|
} |