mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed admin search not returning anything
This commit is contained in:
parent
eb9913992b
commit
acc1caf646
@ -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…
Reference in New Issue
Block a user