Answered step by step
Verified Expert Solution
Link Copied!

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
2
of 2
Assignment 4-1: 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 Add/Edit 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 Add/Edit 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 Add/Edit 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 Add/Edit 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 4 and 12.
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:
[Column(TypeName = "decimal(8,2)")]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

What is transcription attenuation?

Answered: 1 week ago