public async Task <IActionResult> RemoveFromShoppingCart(int productId, int p = 0) { await _shoppingCart.RemoveFromCart(productId); if (p == 1) { Key = "success"; var callbackUrl = Url.Action(nameof(Index)); Message = $"Product with id {productId} removed from <a href='{callbackUrl}'>Shopping cart</a>"; return(RedirectToAction("Index", "Home")); } return(RedirectToAction(nameof(Index))); }