mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
714 B
26 lines
714 B
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using AbpDesk.Tickets;
|
|
using AbpDesk.Tickets.Dtos;
|
|
using Volo.Abp.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace AbpDesk.Web.Mvc.Pages.App.Tickets
|
|
{
|
|
public class IndexModel : AbpPageModel
|
|
{
|
|
public IReadOnlyList<TicketDto> Tickets { get; set; }
|
|
|
|
private readonly ITicketAppService _ticketAppService;
|
|
|
|
public IndexModel(ITicketAppService ticketAppService)
|
|
{
|
|
_ticketAppService = ticketAppService;
|
|
}
|
|
|
|
public async Task OnGetAsync(GetAllTicketsInput input)
|
|
{
|
|
var result = await _ticketAppService.GetAll(input);
|
|
Tickets = result.Items;
|
|
}
|
|
}
|
|
}
|
|
|