This application is a web-based book rental system developed using ASP.NET Core MVC. It enables users to browse a collection of books, categorized by genre or type, and perform essential operations such as renting and returning books. Administrators can manage the library by adding new books, editing existing entries, assigning categories, and removing outdated records.
This project serves as a practical demonstration of how to implement separation of concerns using MVC architecture, repositories, and services within a single ASP.NET Core application.
flowchart TD
subgraph Client
A[User / Browser]
end
subgraph MVC
B[Controller]
C[Service]
D[Repository]
E[View]
F[Model]
end
A --> B
B --> C
C --> D
D --> E
E --> A
C --> F
D --> F
B --> E
B --> F
git clone https://github.com/patmat511/Library-MVC.git
cd Library-MVCEdit the appsettings.json file and set your connection string:
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Database=LibraryDb;Trusted_Connection=True;TrustServerCertificate=True;"
}dotnet ef database updateIf you don’t have EF CLI installed:
dotnet tool install --global dotnet-efdotnet run