try rewirte of all backoffice controllers to ApiControllers

This commit is contained in:
2020-10-27 15:47:23 +01:00
parent edfb6ec2e5
commit 6eb81a5eeb
37 changed files with 315 additions and 354 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;
using zero.Core.Api;
using zero.Core.Entities;
@@ -15,9 +15,9 @@ namespace zero.Web.Controllers
}
public async Task<IActionResult> GetChildren(string parent = null, string active = null)
public async Task<IList<TreeItem>> GetChildren(string parent = null, string active = null)
{
return Json(await Api.GetChildren(parent, active));
return await Api.GetChildren(parent, active);
}
}
}