Change project to 3-Layer structure

This commit is contained in:
Tech Garage 2023-06-02 15:26:29 +03:30
parent 2f900a5036
commit 2d67540e13
1365 changed files with 760 additions and 618 deletions

21
UI/Pages/Logs.cshtml.cs Normal file
View file

@ -0,0 +1,21 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using MTWireGuard.Application.Repositories;
namespace MTWireGuard.Pages
{
public class LogsModel : PageModel
{
private readonly IMikrotikRepository API;
public LogsModel(IMikrotikRepository mikrotik)
{
API = mikrotik;
}
public async Task OnGetAsync()
{
ViewData["Logs"] = await API.GetLogsAsync();
}
}
}