2021-05-27 16:58:40 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
2022-01-20 13:51:01 +08:00
|
|
|
|
using Waste.Application;
|
|
|
|
|
|
using Waste.Domain;
|
2021-05-27 16:58:40 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Waste.Web.Entry.Pages.Device
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20>豸<EFBFBD><E8B1B8><EFBFBD><EFBFBD>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class IndexModel : BaseModel
|
|
|
|
|
|
{
|
2022-01-20 13:51:01 +08:00
|
|
|
|
private readonly IBusinessService _businessService;
|
2021-05-27 16:58:40 +08:00
|
|
|
|
public Guid emptyBusinessid = Guid.Empty;
|
2022-01-20 13:51:01 +08:00
|
|
|
|
public List<W_Business> blist = new List<W_Business>();
|
|
|
|
|
|
public IndexModel(IBusinessService businessService)
|
2021-05-27 16:58:40 +08:00
|
|
|
|
{
|
2022-01-20 13:51:01 +08:00
|
|
|
|
_businessService = businessService;
|
|
|
|
|
|
}
|
|
|
|
|
|
public async Task OnGet()
|
|
|
|
|
|
{
|
|
|
|
|
|
blist = await _businessService.GetAllList();
|
2021-05-27 16:58:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|