public JsonResult AddInventoryCategory(InventoryCategory inventoryCategory) { InventoriesController obj = new InventoriesController(); var response = obj.PostInventoryCategory(inventoryCategory); return(Json(((InventoryCategory)(((System.Net.Http.ObjectContent)(response.Content)).Value)).ICID, JsonRequestBehavior.AllowGet)); }