From b12aadb057c167a44c80a4a70c622458a99b9c70 Mon Sep 17 00:00:00 2001 From: johnathan Date: Mon, 6 Apr 2020 14:42:47 +1200 Subject: [PATCH] Added the parameter to capture if the grocery is onsale or not. --- Models/GroceryPurchasedModel.cs | 1 + Models/IGroceryPurchasedModel.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Models/GroceryPurchasedModel.cs b/Models/GroceryPurchasedModel.cs index c00be8d..e907e34 100644 --- a/Models/GroceryPurchasedModel.cs +++ b/Models/GroceryPurchasedModel.cs @@ -20,5 +20,6 @@ public class GroceryPurchasedModel : IGroceryPurchasedModel public string grocery { get; set; } public decimal quantity { get; set; } public DateTime date { get; set; } + public bool onsale { get; set; } } } diff --git a/Models/IGroceryPurchasedModel.cs b/Models/IGroceryPurchasedModel.cs index 33bb9ee..14413ed 100644 --- a/Models/IGroceryPurchasedModel.cs +++ b/Models/IGroceryPurchasedModel.cs @@ -10,5 +10,6 @@ public interface IGroceryPurchasedModel : IGroceryModel decimal totalprice { get; set; } string store { get; set; } DateTime date { get; set; } + bool onsale { get; set; } } }