Beispiel #1
0
 public IActionResult getID([FromQuery] int id)
 {
     try
     {
         return(new JsonResult(_servicio.GetId(id))
         {
             StatusCode = 200
         });
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }