public Task UpdateExistingOrderedProduct(OrderedProductDataEntity orderedProductDataEntity)
        {
            var productToUpdate = _addedProducts.First(ap => ap.ProductId != orderedProductDataEntity.ProductId);

            productToUpdate.Quantity = orderedProductDataEntity.Quantity;

            return(Task.CompletedTask);
        }
Example #2
0
 public Task AddProductToOrder(OrderedProductDataEntity orderedProductDataEntity)
 {
     throw new System.NotImplementedException();
 }
        public Task AddProductToOrder(OrderedProductDataEntity orderedProductDataEntity)
        {
            _addedProducts.Add(orderedProductDataEntity);

            return(Task.CompletedTask);
        }
Example #4
0
 public Task UpdateExistingOrderedProduct(OrderedProductDataEntity orderedProductDataEntity)
 {
     throw new System.NotImplementedException();
 }