Browse Source

Fixed admin search not returning anything

pull/111/head
Teknikode 4 years ago
parent
commit
acc1caf646
  1. 4
      Teknik/Areas/Admin/Controllers/AdminController.cs

4
Teknik/Areas/Admin/Controllers/AdminController.cs

@ -84,7 +84,7 @@ namespace Teknik.Areas.Admin.Controllers @@ -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 @@ -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…
Cancel
Save