Преглед на файлове

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…
Отказ
Запис