in backend/MXApi/Controllers/MXController.cs [46:53]
public async Task<HttpResponseMessage> SendDeviceMessage([FromBody] BroadcastMessage message)
{
var success = await _iotHubService.InvokeDeviceMethod(message.DeviceId, message.MessageContents, Constants.MessageMethodName);
return success
? Request.CreateResponse(HttpStatusCode.OK)
: Request.CreateResponse(HttpStatusCode.InternalServerError, "Could not find device");
}