Beispiel #1
0
 public List<PostInfo> GetPostList(int pageId, int pageSize, bool isWeb)
 {
     try
     {
         PostManager mgr = new PostManager();
         HelperMethods helperMgr = new HelperMethods();
         TokenInfo tokenInfo = helperMgr.GetUserToken<TokenInfo>(isWeb, HttpContext.Current);
         return mgr.GetPostList(tokenInfo.Idf, tokenInfo.TerritoryId, tokenInfo.FolderPath, pageId, helperMgr.SetPageSize(pageSize, isWeb));
     }
     catch (Exception ex)
     {
         throw new WebFaultException<string>(ex.Message, System.Net.HttpStatusCode.InternalServerError);
     }
 }