public ActionResult GetDesginList(DesginQuery condition) { var c = PageSearchBuilder.Build(Request, condition); var designs = BS.GetDesginList(c); //designs. return(new JsonResult() { Data = designs, MaxJsonLength = int.MaxValue }); }
public ActionResult GetDesginList(string openId) { var designs = BS.GetDesginList(openId); return(new JsonResult() { Data = designs.Select(x => new { x.Preview1, DesignId = x.Id, x.Name, x.Tags, x.IsPublic, x.Follows , x.UnitPrice }), MaxJsonLength = int.MaxValue }); }