Files
Backend-Api/ServiceHost/Areas/AdminNew/Pages/Company/RollCall/Index.cshtml.cs

24 lines
722 B
C#

using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Query.AdminReports.Handlers;
using Query.AdminReports.Models;
namespace ServiceHost.Areas.AdminNew.Pages.Company.RollCall
{
public class IndexModel : PageModel
{
private readonly IGetWorkshopWithRollCallHandler _workshopWithRollCallHandler;
public List<WorkshopWithRollCallServiceQueryModel> Items { get; set; }
public IndexModel(IGetWorkshopWithRollCallHandler workshopWithRollCallHandler)
{
_workshopWithRollCallHandler = workshopWithRollCallHandler;
}
public void OnGet()
{
Items = _workshopWithRollCallHandler.Handle(new WorkshopWithRollCallServiceQueryParameters());
}
}
}