コード例 #1
0
        public IActionResult GetAnswerLikes(int answerId)
        {
            var db         = new QuestionRepository(_conn);
            var countLikes = db.GetAnswerLikes(answerId);

            return(Json(countLikes));
            //return Json(new { countLikes = db.GetQuestionLikes(questionId) });
        }