public ContentServiceResult FlagComment(string contentId)
        {
            var result = new ContentServiceResult
            {
                IsSuccessful = false,
                IsLoggedIn   = IsLoggedIn()
            };

            if (result.IsLoggedIn)
            {
                result.IsSuccessful = TelligentService.FlagComment(contentId);
                if (result.IsSuccessful)
                {
                    result.Message = DictionaryConstants.UnderReviewLabel;
                }
            }

            return(result);
        }
Example #2
0
        protected void reportAnchor_ServerClick(object sender, EventArgs e)
        {
            HtmlAnchor button = sender as HtmlAnchor;

            TelligentService.FlagComment(button.Attributes["data-id"]);
        }