示例#1
0
        public async Task <IActionResult> Like(uint cid, int lp, int ppc = 6, bool ujs = false)//点赞
        {
            var resModel = await MakeDetailViewModelAsync(cid, lp, ppc, ujs);

            resModel.IsLike = await _likeRepository.LikeForContentAsync(resModel.Sender.Id, cid);

            return(RedirectToAction("_ContentDetail", resModel));
        }