public IActionResult GetItems() { try { //string test = GetClaimUserID(); return(new JsonResult(ItemBAL.GetItems())); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); //return StatusCode(StatusCodes.Status500InternalServerError, "Failed to get Items"); } }