// POST: api/CustomerCategory public IHttpActionResult Post([FromBody] ItemCategory category) { var returnCategory = service.CreateItemCategory(category); if (returnCategory == null) { return(BadRequest("Category Already Exists.")); } return(Ok(returnCategory)); }