Exemplo n.º 1
0
        public ApiResult GetPendingTweets()
        {
            try
            {
                var tweets = _moderationService.GetProfanityTweetsByStatus(Status.Pending);

                return(ApiResult.Success(tweets));
            }
            catch (System.Exception)
            {
                return(ApiResult.BadRequest("Something went wrong"));
            }
        }