Refactor CartService to use async methods for cart operations and integrate gRPC for backend synchronization
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user