Exemple #1
0
        public async Task <ApiResult> ApproveTweet(string tweetId)
        {
            try
            {
                var result = await _moderationService.ApproveProfanityTweet(tweetId);

                return(result ? ApiResult.Success("Tweet has been approved.") : ApiResult.NotFound("Could not find Tweet."));
            }
            catch (System.Exception)
            {
                return(ApiResult.BadRequest("Something went wrong"));
            }
        }