Question: Hands - on skills in ASP.NET Core Instructions: 1 . General: This practical exam is designed to assess your hands - on skills in ASP.NET

Hands
-
on skills in ASP.NET Core
Instructions:
1
.
General:
This practical exam is designed to assess your hands
-
on skills in ASP.NET Core.
Read each question carefully before proceeding.
2
.
Environment:
Use Visual Studio for your development.
ASP.NET Core version:
5
.
0
3
.
Submission:
Submit your exam by zipping your entire project folder.
Include a document briefly explaining your design decisions.
Question
1
: Setup and Basic Web Page
(
2
0
marks
)
1
.
Create a new ASP.NET Core MVC project.
2
.
Implement a basic home page with the following elements:
Header with a logo
.
Navigation menu with links to Home, About, and Contact pages.
A welcome message on the Home page.
Question
2
: Model
-
View
-
Controller
(
MVC
)
Structure
(
2
5
marks
)
1
.
Implement an MVC structure for managing a list of Products.
2
.
Model:
Create a model class named Product with properties: ProductId, ProductName, Description, Price,
and Stock.
Implement data validation for required fields.
3
.
Controller:
Create a controller named ProductController.
Include actions for displaying a list of products, viewing details, adding a new product, editing, and
deleting a product.
4
.
Views:
Create appropriate views for listing, details, create, edit, and delete products.
Question
3
: Database Integration
(
3
0
marks
)
1
.
Set up a database context named AppDbContext.
2
.
Configure the database to include a Products table.
3
.
Ensure proper database migrations for creating and updating the schema.
4
.
Implement data seeding to populate the Products table with at least
5
default records.
Question
4
: Data Validation and Error Handling
(
1
5
marks
)
1
.
Implement client
-
side and server
-
side validation for the product creation and editing forms.
2
.
Handle errors gracefully throughout the application.
3
.
Provide meaningful error messages for different scenarios.
Question
5
: Additional Feature
(
1
0
marks
)
Implement an additional feature of your choice. This could be:
Pagination for the product list.
Search functionality.
Adding images to products.
Any other relevant feature
Note: Ensure your code is well
-
organized, follows best practices, and is thoroughly tested. Marks will
be awarded for both functionality and code quality.
Step by step process on what to do with code. complete answer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!