Skip to content

Commit

Permalink
Fix mysql issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne-KTCSZ committed Oct 12, 2019
1 parent 987bb4f commit f13e6fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZKEACMS.Product/Controllers/ProductCategoryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.AspNetCore.Mvc;
using ZKEACMS.Product.Models;
using ZKEACMS.Product.Service;
using Easy.Extend;
using System.Linq;

namespace ZKEACMS.Product.Controllers
{
Expand Down Expand Up @@ -62,7 +62,7 @@ public override IActionResult Delete(int id)
[DefaultAuthorize(Policy = PermissionKeys.ViewProductCategory)]
public JsonResult GetProductCategoryTree()
{
var pages = Service.Get();
var pages = Service.Get().ToList();
var node = new Tree<ProductCategory>().Source(pages).ToNode(m => m.ID.ToString(), m => m.Title, m => m.ParentID.ToString(), "0");
return Json(node);
}
Expand Down

0 comments on commit f13e6fb

Please sign in to comment.