Lab6 Question
Lab6 Question
Practice Assignment 6
In this series of exercises, you will be building the Admin Panel for a library management
system. The Admin Panel serves as the backend management interface where
administrators can manage categories, authors, books, users, and loan records. By
completing these exercises, you’ll gain hands-on experience in implementing core
functionality required to effectively manage library resources base on ASP.NET Core
MVC version 8.0.
Reuse the models and interfaces from previous practice exercises, and based on them,
continue to develop additional features
Create Function: Develop a form and controller action to add new categories to the
Categories table.
Update Function: Enable editing of category details by creating an Edit view and
an Edit action in the controller. Pre-fill the form with the current category data, and
save updates upon submission.
Delete Function: Implement a delete action that prompts confirmation before
removing a category.
UI: Ensure each category is displayed in a list, with buttons for editing and deleting.
Use Bootstrap or a similar framework for layout consistency.
Objective: Develop functions for creating, updating, and deleting books in the
system.
Requirements:
o Create Function: Create a form and controller action to add books. Fields
include Title, AuthorId (with dropdown selection), CategoryId, Description,
PublishedDate, and IsActive.
o Update Function: Implement an edit view and controller action for updating
book details, showing the current book information and updating records
upon submission.
o Delete Function: Add a delete action with a confirmation dialog.
o UI: Display books with essential details like Title, Author, Category, and
PublishedDate in a table. Add buttons for viewing, editing, and deleting each
book entry.
Exercise 4: User Management
Objective: Set up functions for adding, updating, and deleting users who access the
library system.
Requirements:
o Create Function: Implement a form and controller action to register users,
including fields like Username, FullName, Email, Password, RoleId, and
IsActive.
o Update Function: Create an edit view and action to modify user
information, loading current user data in the form.
o Delete Function: Include a delete action with confirmation for removing
users.
o UI: Display users in a list or table, showing details like Username, FullName,
Email, and Role. Include buttons for editing and deleting users