Beispiel #1
0
 public List<NotificationInfo> GetNotificationByUser(int pageId, int pageSize, bool isWeb)
 {
     try
     {
         PostManager mgr = new PostManager();
         HelperMethods helperMgr = new HelperMethods();
         var userIdf = helperMgr.GetUserIdf(isWeb, HttpContext.Current);
         return mgr.GetNotificationByUser(userIdf, pageId, helperMgr.SetPageSize(pageSize, isWeb));
     }
     catch (Exception ex)
     {
         throw new WebFaultException<string>(ex.Message, System.Net.HttpStatusCode.InternalServerError);
     }
 }
Beispiel #2
0
 public List<CommentInfo> GetOwnComments(long postId, int pageId, int pageSize, bool isWeb)
 {
     try
     {
         CommentManager mgr = new CommentManager();
         HelperMethods helperMgr = new HelperMethods();
         Guid userIdf = helperMgr.GetUserIdf(isWeb, HttpContext.Current);
         return mgr.GetOwnComments(userIdf, postId, pageId, helperMgr.SetPageSize(pageSize, isWeb));
     }
     catch (Exception ex)
     {
         throw new WebFaultException<string>(ex.Message, System.Net.HttpStatusCode.InternalServerError);
     }
 }