@@ -30,7 +30,7 @@ Imports DotNetNuke.Modules.Blog.Core.Services
3030Imports DotNetNuke.Services.Social.Notifications
3131Imports DotNetNuke.Web.Api
3232
33- Namespace Integration.Services
33+ Namespace Api
3434
3535 Public Class NotificationServiceController
3636 Inherits DnnApiController
@@ -62,7 +62,7 @@ Namespace Integration.Services
6262 Return Request.CreateResponse(HttpStatusCode.BadRequest, New With {.Result = "error" })
6363 End If
6464 Post.Published = True
65- PostsController.UpdatePost(Post, UserInfo.UserID)
65+ Core.Entities.Posts. PostsController.UpdatePost(Post, UserInfo.UserID)
6666 NotificationsController.Instance().DeleteNotification(postData.NotificationId)
6767 Return Request.CreateResponse(HttpStatusCode.OK, New With {.Result = "success" })
6868 End Function
@@ -76,7 +76,7 @@ Namespace Integration.Services
7676 If Blog Is Nothing Or Post Is Nothing Then
7777 Return Request.CreateResponse(HttpStatusCode.BadRequest, New With {.Result = "error" })
7878 End If
79- PostsController.DeletePost(ContentItemId)
79+ Core.Entities.Posts. PostsController.DeletePost(ContentItemId)
8080 NotificationsController.Instance().DeleteNotification(postData.NotificationId)
8181 Return Request.CreateResponse(HttpStatusCode.OK, New With {.Result = "success" })
8282 End Function
@@ -90,7 +90,7 @@ Namespace Integration.Services
9090 If Blog Is Nothing Or Post Is Nothing Or Comment Is Nothing Then
9191 Return Request.CreateResponse(HttpStatusCode.BadRequest, New With {.Result = "error" })
9292 End If
93- CommentsController.ApproveComment(BlogModuleId, BlogId, Comment)
93+ Core.Entities.Comments. CommentsController.ApproveComment(BlogModuleId, BlogId, Comment)
9494 NotificationsController.Instance().DeleteNotification(postData.NotificationId)
9595 Return Request.CreateResponse(HttpStatusCode.OK, New With {.Result = "success" })
9696 End Function
@@ -104,7 +104,7 @@ Namespace Integration.Services
104104 If Blog Is Nothing Or Post Is Nothing Or Comment Is Nothing Then
105105 Return Request.CreateResponse(HttpStatusCode.BadRequest, New With {.Result = "error" })
106106 End If
107- CommentsController.DeleteComment(BlogModuleId, BlogId, Comment)
107+ Core.Entities.Comments. CommentsController.DeleteComment(BlogModuleId, BlogId, Comment)
108108 NotificationsController.Instance().DeleteNotification(postData.NotificationId)
109109 Return Request.CreateResponse(HttpStatusCode.OK, New With {.Result = "success" })
110110 End Function
@@ -116,8 +116,8 @@ Namespace Integration.Services
116116 BlogModuleId = nKey.ModuleId
117117 BlogId = nKey.BlogId
118118 ContentItemId = nKey.ContentItemId
119- Blog = BlogsController.GetBlog(BlogId, UserInfo.UserID, Threading.Thread.CurrentThread.CurrentCulture.Name)
120- Post = PostsController.GetPost(ContentItemId, BlogModuleId, Threading.Thread.CurrentThread.CurrentCulture.Name)
119+ Blog = Core.Entities.Blogs. BlogsController.GetBlog(BlogId, UserInfo.UserID, Threading.Thread.CurrentThread.CurrentCulture.Name)
120+ Post = Core.Entities.Posts. PostsController.GetPost(ContentItemId, BlogModuleId, Threading.Thread.CurrentThread.CurrentCulture.Name)
121121 End Sub
122122
123123 Private Sub ParseCommentKey( key As String )
@@ -126,9 +126,9 @@ Namespace Integration.Services
126126 BlogId = nKey.BlogId
127127 ContentItemId = nKey.ContentItemId
128128 CommentId = nKey.CommentId
129- Blog = BlogsController.GetBlog(BlogId, UserInfo.UserID, Threading.Thread.CurrentThread.CurrentCulture.Name)
130- Post = PostsController.GetPost(ContentItemId, BlogModuleId, Threading.Thread.CurrentThread.CurrentCulture.Name)
131- Comment = CommentsController.GetComment(CommentId, UserInfo.UserID)
129+ Blog = Core.Entities.Blogs. BlogsController.GetBlog(BlogId, UserInfo.UserID, Threading.Thread.CurrentThread.CurrentCulture.Name)
130+ Post = Core.Entities.Posts. PostsController.GetPost(ContentItemId, BlogModuleId, Threading.Thread.CurrentThread.CurrentCulture.Name)
131+ Comment = Core.Entities.Comments. CommentsController.GetComment(CommentId, UserInfo.UserID)
132132 End Sub
133133# End Region
134134
0 commit comments