So far we have been able to send notification to user in our quest to integrate our module with DNN notifications. However its the Notification Action the we are having issue. It sends the request to the server but for some reason the notification Id is always 0.
Here's the strip down version code our our controller.
<DnnAuthorize()> _
Public
Class
NotificationsController
Inherits
DnnApiController
Public
Class
JoinGroupDTO
Public
NotificationId
As
Integer
End
Class
<HttpPost()> _
<ValidateAntiForgeryToken()> _
Public
Function
JoinGroup(postData
As
JoinGroupDTO)
As
HttpResponseMessage
Dim
notify
As
dnnNotification.Notification = dnnNotification.NotificationsController.Instance.GetNotification(postData.NotificationId)
dnnNotification.NotificationsController.Instance().DeleteNotificationRecipient(postData.NotificationId, UserInfo.UserID)
End
Function
End
Class
Any idea/suggestions?
Thanks,
Virgil