public async Task <ActionResult <MessagePacket> > Call([FromBody] MessagePacket messagePacket) { messagePacket .VerifyNotNull(nameof(messagePacket)) .Verify(); MessagePacket result = await _messageHost.Call(messagePacket); return(Ok(result)); }
public async Task <ActionResult> Send([FromBody] MessagePacket messagePacket) { messagePacket .VerifyNotNull(nameof(messagePacket)) .Verify(); await _messageHost.Send(messagePacket); return(Ok()); }