Explorar el Código

Fixed admin search not returning anything

tags/3.0.0
Teknikode hace 2 años
padre
commit
acc1caf646
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      Teknik/Areas/Admin/Controllers/AdminController.cs

+ 2
- 2
Teknik/Areas/Admin/Controllers/AdminController.cs Ver fichero

@@ -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" } });
}

Cargando…
Cancelar
Guardar