minor code rearange, quantity as optional parameter, removed some unused fields

This commit is contained in:
Konrad Masalski committed 2019-10-28 22:44:40 +01:00
1 parent 8ccc87d7e9
commit d422c42c24
4 files changed
+4 -8

No files matched your search

@@ -20,7 +20,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Services
_logger = logger;
}
public async Task AddItemToBasket(int basketId, int catalogItemId, decimal price, int quantity)
public async Task AddItemToBasket(int basketId, int catalogItemId, decimal price, int quantity = 1)
{
var basket = await _basketRepository.GetByIdAsync(basketId);