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

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

View File

@@ -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);