我正在使用ajax请求获取我的项目中的PartialViews之一。我想通过INotifier传递一条消息。 Cuttently我使用HttpStatusCodeResult return new HttpStatusCodeResult(204, "Message");
传递有关错误的信息,但不是令人满意的解决方案。ajax响应果园通知
$(this).load($(this).attr("href"), function (response, status, xhr) {
if (xhr.status == 204) {
// show message
}
});
我想知道在ActionResult中使用标准INotifier.Error()
是可能的。