public async Task <ResultsItem> CreateBBComment(BBComment comment)
        {
            if (!ModelState.IsValid)
            {
                return(ResultsItem.Error(ModelState.GetAllErrorsString()));
            }

            OnThreadUpdatedCacheHandler(threadId: comment.ThreadId);
            OnCommentsUpdatedCacheHandler(comment.ThreadId);
            return(await CommunityLogic.CreateBBComment(comment, CurrentUser));
        }
Exemple #2
0
 public static async Task <ResultsItem> CreateBBComment(BBComment comment, PegaUser user)
 {
     return(await CommunityRepository.CreateBBComment(comment, user));
 }