public async Task <IActionResult> AddToCart(int id) { var userId = User.FindFirstValue(ClaimTypes.NameIdentifier); await appCourseListService.AddCourseToShoppingListAsync(id, Guid.Parse(userId)); ViewBag.IsInShoppingCart = true; return(RedirectToAction("Index", new { id })); }