make page api + controller non-generic and allow saving of modules, yay!

This commit is contained in:
2020-08-27 14:22:13 +02:00
parent 805dc67507
commit 673d8f8af9
10 changed files with 166 additions and 72 deletions
+6
View File
@@ -9,9 +9,11 @@ using zero.Core.Api;
using zero.Core.Entities;
using zero.Core.Extensions;
using zero.Core.Utils;
using zero.Web.Filters;
namespace zero.Debug.Controllers
{
[ServiceFilter(typeof(ModelStateValidationFilterAttribute))]
public class TestController : Controller
{
private readonly IActionDescriptorCollectionProvider _actionDescriptorCollectionProvider;
@@ -75,6 +77,10 @@ namespace zero.Debug.Controllers
}
[HttpPost]
public IActionResult SaveTest([FromBody] IPage model) => Json(model);
[HttpGet]