Files
mixtape/zero.Web/Controllers/PageTreeController.cs
T

24 lines
476 B
C#
Raw Normal View History

using System.Collections.Generic;
2020-04-06 18:45:23 +02:00
using System.Threading.Tasks;
2020-04-06 15:53:32 +02:00
using zero.Core.Api;
2020-05-25 11:27:23 +02:00
using zero.Core.Entities;
2020-04-06 15:53:32 +02:00
namespace zero.Web.Controllers
{
public class PageTreeController : BackofficeController
2020-04-06 15:53:32 +02:00
{
IPageTreeApi Api;
2020-04-06 15:53:32 +02:00
public PageTreeController(IPageTreeApi api)
2020-04-06 15:53:32 +02:00
{
Api = api;
}
public async Task<IList<TreeItem>> GetChildren(string parent = null, string active = null)
2020-04-06 15:53:32 +02:00
{
return await Api.GetChildren(parent, active);
2020-04-06 15:53:32 +02:00
}
}
}