瀏覽代碼

Fixed admin search not returning anything

tags/3.0.0
Teknikode 2 年之前
父節點
當前提交
acc1caf646
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Teknik/Areas/Admin/Controllers/AdminController.cs

+ 2
- 2
Teknik/Areas/Admin/Controllers/AdminController.cs 查看文件

@@ -84,7 +84,7 @@ namespace Teknik.Areas.Admin.Controllers
}
}

return Json(new { result = new { html = PartialView("~/Areas/Admin/Views/Admin/UserResults.cshtml", models) } });
return Json(new { result = new { html = PartialView("~/Areas/Admin/Views/Admin/UserResults.cshtml", models).RenderToString() } });
}

[HttpPost]
@@ -102,7 +102,7 @@ namespace Teknik.Areas.Admin.Controllers
model.Downloads = foundUpload.Downloads;
model.DeleteKey = foundUpload.DeleteKey;

return Json(new { result = new { html = PartialView("~/Areas/Admin/Views/Admin/UploadResult.cshtml", model) } });
return Json(new { result = new { html = PartialView("~/Areas/Admin/Views/Admin/UploadResult.cshtml", model).RenderToString() } });
}
return Json(new { error = new { message = "Upload does not exist" } });
}

Loading…
取消
儲存