public IHttpActionResult CreateDevice(DeviceModel model) { if (!ModelState.IsValid) { return BadRequest(ModelState); } ClientPort.Tell(model.BuildImmutable()); return Ok(); }