Waste/Waste.Web.Entry/Pages/Home/Main.cshtml.cs

26 lines
649 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Waste.Application;
using Waste.Domain;
namespace Waste.Web.Entry.Pages.Home
{
public class MainModel : BaseModel
{
public W_RealData data = null;
private IBusinessService _businessService;
public MainModel(IBusinessService businessService)
{
_businessService = businessService;
}
public async Task OnGetAsync()
{
data = await _businessService.GetTotalInfoAsync();
}
}
}