26 lines
681 B
C#
26 lines
681 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.AppApi
|
|
{
|
|
public class IndexModel : BaseModel
|
|
{
|
|
private readonly IBusinessService _businessService;
|
|
public List<W_Business> blist = new List<W_Business>();
|
|
public IndexModel(IBusinessService businessService)
|
|
{
|
|
_businessService = businessService;
|
|
}
|
|
public async Task OnGetAsync()
|
|
{
|
|
blist = await _businessService.GetAllList();
|
|
}
|
|
}
|
|
}
|