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