Remove restock everywhere #7
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Fixes #5
Remove
RestockThresholdandMaxStockThresholdproperties and references from the project.RestockThresholdandMaxStockThresholdproperties fromCatalogItem.cs.RestockThresholdandMaxStockThresholdin theCreateandEditactions inCatalogController.cs.RestockThresholdandMaxStockThresholdinCatalogTable.cshtml,Create.cshtml,Edit.cshtml, andDetails.cshtml.RestockThresholdandMaxStockThresholdinCatalogDBInitializer.cs.RestockThresholdandMaxStockThresholdinCatalogService.csandCatalogServiceMock.cs.For more details, open the Copilot Workspace session.
PR Type
enhancement
Description
RestockThresholdandMaxStockThresholdproperties from theCatalogItemmodel.CatalogControllerto remove references toRestockThresholdandMaxStockThresholdinCreateandEditactions.CatalogTable.cshtml,Create.cshtml,Edit.cshtml,Details.cshtml) to remove display and form fields forRestockThresholdandMaxStockThreshold.CatalogDBInitializerto remove processing ofRestockThresholdandMaxStockThresholdfrom CSV files.CatalogService.csandCatalogServiceMock.cs.Changes walkthrough 📝
7 files
CatalogController.cs
Remove restock properties from CatalogController actionseShopOnWeb/eShop.MVC/Controllers/CatalogController.cs
RestockThresholdandMaxStockThresholdfromCreateandEditactions.
CatalogItem.cs
Remove restock properties from CatalogItem modeleShopOnWeb/eShop.MVC/Models/CatalogItem.cs
RestockThresholdandMaxStockThresholdproperties.CatalogDBInitializer.cs
Remove restock properties from CatalogDBInitializereShopOnWeb/eShop.MVC/Models/Infrastructure/CatalogDBInitializer.cs
RestockThresholdandMaxStockThresholdin CSVprocessing.
CatalogTable.cshtml
Remove restock fields from CatalogTable vieweShopOnWeb/eShop.MVC/Views/Catalog/CatalogTable.cshtml
RestockThresholdandMaxStockThreshold.Create.cshtml
Remove restock fields from Create vieweShopOnWeb/eShop.MVC/Views/Catalog/Create.cshtml
RestockThresholdandMaxStockThreshold.Details.cshtml
Remove restock fields from Details vieweShopOnWeb/eShop.MVC/Views/Catalog/Details.cshtml
RestockThresholdandMaxStockThreshold.Edit.cshtml
Remove restock fields from Edit vieweShopOnWeb/eShop.MVC/Views/Catalog/Edit.cshtml
RestockThresholdandMaxStockThreshold.2 files
CatalogService.cs
Format CatalogService fileeShopOnWeb/eShop.MVC/Services/CatalogService.cs
CatalogServiceMock.cs
Format CatalogServiceMock fileeShopOnWeb/eShop.MVC/Services/CatalogServiceMock.cs