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