public async Task <IActionResult> DisikeComment(int?id) { if (id == null) { return(NotFound()); } var data = _comment.CommentById(id); var userId = _userManager.GetUserId(this.HttpContext.User); bool dislikeComment = await _comment.CommentDislike(data, userId); //data.SongLike += 1; if (dislikeComment) { TempData["LikeAlert"] = true; TempData["AlreadyLikeAlert"] = false; return(RedirectToAction("GetSong", "Song", new { id = data.SongId })); } TempData["LikeAlert"] = false; TempData["AlreadyLikeAlert"] = true; return(RedirectToAction("GetSong", "Song", new { id = data.SongId })); }