Beispiel #1
0
        /// <summary>
        /// Add rank for comment by user
        /// </summary>
        /// <param name="commentId">Unique identification of comment</param>
        /// <param name="rank">How much rank it will update</param>
        /// <param name="userId">Unique identification of user</param>
        /// <returns></returns>
        public async Task AddRankForComment(int commentId, int rank, int userId)
        {
            await _commentRepository.AddRank(commentId, rank);

            await _commentRepository.ConnectUserRank(commentId, userId);
        }