Exemple #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);
     }
 }