make page api + controller non-generic and allow saving of modules, yay!
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user