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 -5
View File
@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using zero.Core.Api;
using zero.Core.Entities;
namespace zero.Web.Controllers
{
@@ -13,9 +14,6 @@ namespace zero.Web.Controllers
}
public IActionResult GetAll()
{
return Json(Api.GetAll());
}
public IReadOnlyCollection<ISection> GetAll() => Api.GetAll();
}
}