public async Task <IActionResult> TestPostInputWithDifferentOutput([FromBody] WaterBottle waterBottle) { await Task.Delay(0); if (waterBottle != null && waterBottle.Brand == "Ozarka") { return(Ok(Speaker.CreateInstance())); } else { throw new HttpException(HttpStatusCode.BadRequest, "Invalid Object"); } }