public IHttpActionResult Get() { try { Item[] ia = ItemDB.GetAllItems().ToArray(); return(Ok(ia)); } catch (Exception ex) { return(Content(HttpStatusCode.BadRequest, ex)); } }