GENERIC COLLECTIONS ASSIGNMENT
๐ท 1. ๐ Library Management System ๐งพ Question Design a system to store books and their categories. Each book belongs to one category Display all books for a given category Find a book by ID ✅ Model Classes class Category { public int CategoryId { get ; set ; } public string CategoryName { get ; set ; } } class Book { public int BookId { get ; set ; } public string Title { get ; set ; } public string Author { get ; set ; } public Category Category { get ; set ; } } ๐ท 2. ๐ E-Commerce Order System ๐งพ Question Design a shopping system where: A customer places orders Each order has multiple products Calculate total order amount Find a particular Order by ID ✅ Model Classes class Product { public int ProductId { get ; set ; } public string Name { get ; set ; } public double Price { get ; set ; } } class OrderItem { public Product Product { get ; set ; } public int Quantity { ...