mirror of
https://github.com/valentincanonical/eShopOnWeb-chisel-demo.git
synced 2026-05-09 18:06:33 +00:00
Adding ToList to IReadOnlyCollection used in foreach
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Services
|
||||
{
|
||||
var basket = await _basketRepository.GetByIdAsync(basketId);
|
||||
|
||||
foreach (var item in basket.Items)
|
||||
foreach (var item in basket.Items.ToList())
|
||||
{
|
||||
await _basketItemRepository.DeleteAsync(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user