示例#1
0
 public IActionResult Get(int id)
 {
     try
     {
         return(Ok(_setService.Get(id).ToApiModel()));
     }
     catch (Exception ex)
     {
         ModelState.AddModelError("GetSet", ex.StackTrace);
         return(BadRequest(ModelState));
     }
 }