public PostInfo GetPostById(long postId, bool isWeb) { try { PostManager mgr = new PostManager(); TokenInfo tokenInfo = new HelperMethods().GetUserToken<TokenInfo>(isWeb, HttpContext.Current); return mgr.GetPostById(tokenInfo.Idf, tokenInfo.TerritoryId, tokenInfo.FolderPath, postId); } catch (Exception ex) { throw new WebFaultException<string>(ex.Message, System.Net.HttpStatusCode.InternalServerError); } }