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