Exemplo n.º 1
0
 public IActionResult SelectCondition([FromBody] RequestCamera camera)
 {
     try
     {
         List <CameraTable> list = _repository.GetByCondition(camera);
         return(Json(new
         {
             table = list,
             state = "0",
             msg = "获取数据成功"
         }));
     }
     catch (Exception ex)
     {
         return(Json(new
         {
             state = "-1",
             msg = "获取数据出现错误",
             error = ex.Message
         }));
     }
 }