public IHttpActionResult Post([FromBody] Report value) { if (value.detail == null) { return BadRequest("Report Detail not supplied"); } using (var reportsService = new ReportsService()) { value._id = null; reportsService.Save((Report)value); } return Ok((Report)value); }