// POST: api/CustomerCategory public IHttpActionResult Post([FromBody] Sale sale) { var returnSale = service.CreateSale(sale); if (returnSale == null) { return(BadRequest("Sale Already Exists.")); } return(Ok(returnSale)); }