示例#1
0
 public IActionResult GetItem(int id)
 {
     try
     {
         return(new JsonResult(ItemBAL.GetItem(id)));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Failed to get Item"));
     }
 }