Refactor CartService to use async methods for cart operations and integrate gRPC for backend synchronization

This commit is contained in:
masoodafar-web
2025-11-20 20:10:17 +03:30
parent ddb47fda08
commit 30bac23114
7 changed files with 107 additions and 14 deletions

View File

@@ -14,14 +14,14 @@ public partial class Cart : ComponentBase, IDisposable
CartService.OnChange += StateHasChanged;
}
private void ChangeQty(long productId, int value)
private async Task ChangeQty(long productId, int value)
{
CartService.UpdateQuantity(productId, value);
await CartService.UpdateQuantity(productId, value);
}
private void Remove(long productId)
private async Task Remove(long productId)
{
CartService.Remove(productId);
await CartService.Remove(productId);
}
private void ProceedCheckout()