public void SendUserNotification(string msg)
{
var _restClient = CreateClient();
var _restRequest = CreateRq("UserAlertNotify", Method.POST);
_restRequest.AddParameter(new Parameter
{
Name = "application/json",
Value = JsonConvert.SerializeObject(new UserNotification
{
PlainTextBody = msg,
NotificationUrl = Options.BaseSiteUrl,
SendOnSite = true
}),
Type = ParameterType.RequestBody
});
var _restResponse = RunRq(_restClient, _restRequest);
LogManager.GetLogger(GetType()).DebugFormat("SendUserNotification:{0}", _restResponse.Content);
}