public async Task <IActionResult> OnPostDeleteAsync(int[] id) { if (id == null || id.Length == 0) { return(Error("请先选择邮件再进行删除操作!")); } var result = await _messageManager.DeleteAsync(id); return(Json(result, DataAction.Deleted, "邮件")); }