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