public JsonResult AddInventoryItem(InventoryItem _InventoryItem) { InventoriesController obj = new InventoriesController(); var response = obj.PostInventoryItem(_InventoryItem); return(Json(((InventoryItem)(((System.Net.Http.ObjectContent)(response.Content)).Value)).IIID, JsonRequestBehavior.AllowGet)); }