Esempio n. 1
0
 public IActionResult SelectAll(string id)
 {
     try
     {
         return(Ok(_repository.GetParent(id)));
     }
     catch (Exception ex)
     {
         return(Json(new {
             state = "-1",
             msg = "非法操作!"
         }));
     }
 }