public ActionResult Delete(List <string> ids) { try { var objList = _scheduleService.GetFullList(z => ids.Contains(z.Id), z => z.Id, OrderingType.Ascending); _scheduleService.DeleteAll(objList); SetMessager(MessageType.success, "删除成功!"); } catch (Exception e) { SetMessager(MessageType.danger, $"删除失败【{e.Message}!"); } return(RedirectToAction("Index")); }