Open Source Web Application Framework for ASP.NET Core
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.
 
 
 
 
 
 

29 lines
675 B

using AbpDesk.Models.Tickets;
using AbpDesk.Tickets;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
namespace AbpDesk.Controllers
{
public class TicketsController : AbpController
{
private readonly ITicketAppService _ticketAppService;
public TicketsController(ITicketAppService ticketAppService)
{
_ticketAppService = ticketAppService;
}
public IActionResult Index()
{
var result = _ticketAppService.GetAll();
var model = new IndexViewModel
{
Tickets = result.Items
};
return View(model);
}
}
}