Exemple #1
0
        public async Task <IActionResult> RemoveFromWishList(int id)
        {
            var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);
            await appCourseListService.RemoveCourseFromWishListAsync(id, Guid.Parse(userId));

            return(await GetListView(userId, CourseListType.WishList));
        }
Exemple #2
0
        public async Task <IActionResult> RemoveFromWishList(int id)
        {
            var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);
            await appCourseListService.RemoveCourseFromWishListAsync(id, Guid.Parse(userId));

            ViewBag.IsInWishList = true;
            return(RedirectToAction("Index", new { id }));
        }