public IActionResult Batchdel([FromBody] List <CameraTable> _camera) { try { //return Ok(_repository.DeleteList(_camera)); int count = _repository.DeleteList(_camera); return(Json(new { count, state = "0", msg = "操作成功!" })); } catch (Exception ex) { return(Json(new { state = "-1", msg = "非法操作!" })); } }