Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Page 2 of 2 Assignment 4 - 1 : Manage products For this assignment, youll modify the app so it lets an admin user view,
Page
of
Assignment : Manage products
For this assignment, youll modify the app so it lets an admin user view, edit, and delete existing products
as well as add new products.
The Product Manager page
Specifications
When the user clicks the Manage Products link on the Home page or the Products link in the navbar, the
app should display the Product Manager page.
When the user clicks the Add Product button, the app should display the AddEdit Product page with
blank Code and Name fields but with the current date in the Release Date field.
When the user clicks the Edit button for a product, the app should display the AddEdit Product page
with the current data for the product.
When the user clicks the Delete button for a product, the app should display a Delete Product page that
confirms the deletion.
The AddEdit Product page
Specifications continued
The app should display the Product Manager page when the user completes or cancels an add, edit, or
delete operation.
Validate the data the user enters in the AddEdit Product page to be sure that the user enters values for
all fields and that the yearly price is greater than zero. If this data isnt provided, the app should display
a summary of the validation errors above the form.
Use lowercase URLs with a trailing slash.
Use the same Razor view file to add and edit a product.
If you have trouble adding migrations or updating the database, refer to the EF PowerShell commands
described in chapters and
EF Core note: when you generate migration files, you might get type warnings for decimal properties.
You can ignore these warnings. Or if you want to eliminate the warnings, you can decorate your
decimal properties with this attribute from the System.ComponentModel.DataAnnotations.Schema
namespace:
ColumnTypeName "decimal
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started