public SendMessageResponse SendMessage(SendMessageRequest sendMsgReq) { return HttpRequestAdapter.WebHttpPostRequest<SendMessageResponse>(_serviceBaseUrl, "Messages/Send", sendMsgReq, String.Concat("?apikey=", _apiKey)); }
public SendMessageResponse SendMessage(SendMessageRequest sendMsgReq) { SendMessageResponse response = new SendMessageResponse(); MessageService msgSvc = new MessageService(_repository); try { msgSvc.SendMessage(sendMsgReq.Subject, sendMsgReq.Body, _currentTravelerId, new Guid[] { new Guid(sendMsgReq.RecipientID) }); response.MarkSuccess(); } catch (Exception ex) { ReportError(ex, response); } return response; }