Skip to content

Commit

Permalink
Clear Session
Browse files Browse the repository at this point in the history
  • Loading branch information
Laith authored and Laith committed Mar 14, 2024
1 parent 6a89432 commit 0f47626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Elibrary_Web/Areas/Customer/Controllers/CartController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ public IActionResult OrderConfirmation(int id)
_unitOfWork.OrderHeader.UpdateStatus(id, SD.StatusApproved, SD.PaymentStatusApproved);
_unitOfWork.Save();
}
HttpContext.Session.Clear();
}
HttpContext.Session.Clear();
List<ShoppingCart> shoppingCarts = _unitOfWork.ShoppingCart.GetAll(u => u.ApplicationUserId == orderHeader.ApplicationUserId).ToList();
_unitOfWork.ShoppingCart.RemoveRange(shoppingCarts);
_unitOfWork.Save();
Expand Down

0 comments on commit 0f47626

Please sign in to comment.