24 lines
476 B
C#
24 lines
476 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using zero.Core.Api;
|
|
using zero.Core.Entities;
|
|
|
|
namespace zero.Web.Controllers
|
|
{
|
|
public class PageTreeController : BackofficeController
|
|
{
|
|
IPageTreeApi Api;
|
|
|
|
public PageTreeController(IPageTreeApi api)
|
|
{
|
|
Api = api;
|
|
}
|
|
|
|
|
|
public async Task<IList<TreeItem>> GetChildren(string parent = null, string active = null)
|
|
{
|
|
return await Api.GetChildren(parent, active);
|
|
}
|
|
}
|
|
}
|