How ecnalyr/pos works
POS is an MVC point-of-sale application organized around establishments, product catalogs, shopping carts, checkout orders, and staff accounts. The main customer workflow is to browse establishment products, add items from one establishment to a cart, submit shipping details, and create an order; separate management and reporting routes serve staff. The source excerpts show the cart-to-order processing and product persistence implementations. Several controller and membership connections are indicated by the source index but not demonstrated in excerpts, so those links are marked unverified rather than asserted as observed calls.
Main entry points: CartApplicationService.cs Order preparation · CartController.cs Cart and checkout · CodeFirstMembershipProvider.cs Membership provider · EfProductRepository.cs Product repository
Components 26
Web application
- Product browsing
POS/Controllers/ProductController.cs - Establishments
POS/Controllers/EstablishmentController.cs - Cart and checkout
POS/Controllers/CartController.cs - Catalog administration
POS/Controllers/AdminController.cs - Order details
POS/Controllers/OrderDetailsController.cs - Server reports
POS/Controllers/ServerReportController.cs - Account access
POS/Controllers/AccountController.cs - Membership
POS/Controllers/MembershipController.cs - Membership model
POS/Models/Membership.cs
POS domain
- Shopping cart
POS.Domain/Model/Cart.cs - Order preparation
POS.Domain/ApplicationService/CartApplicationService.cs - Shipping details
POS.Domain/Model/ShippingDetails.cs - Orders
POS.Domain/Model/Order.cs - Products
POS.Domain/Model/Product.cs - Product categories
POS.Domain/Model/Category.cs - Parent categories
POS.Domain/Model/ParentCategory.cs - Establishment model
POS.Domain/Model/Establishment.cs - Users and roles
POS.Domain/Model/User.cs
Persistence and identity
- Product repository
POS.Infrastructure/EfProductRepository.cs - Establishment repository
POS.Infrastructure/EfEstablishmentRepository.cs - Order repository
POS.Infrastructure/EfOrderRepository.cs - Entity Framework store
POS.Infrastructure/EfDbContext.cs - Membership provider
POS.Infrastructure/Membership/CodeFirstMembershipProvider.cs - Web security
POS.Infrastructure/Membership/WebSecurity.cs
Other components
- Customer
- Staff
Connections 28
- Customer → Product browsing: browses
- Product browsing → Product repository: queries catalog
- Customer → Cart and checkout: manages cart
- Cart and checkout → Product repository: loads products
- Cart and checkout → Shopping cart: updates cart
POS/Controllers/CartController.cs - Cart and checkout → Order preparation: submits order
- Order preparation → Orders: builds order
POS.Domain/ApplicationService/CartApplicationService.cs - Order preparation → Order repository: creates order
POS.Domain/ApplicationService/CartApplicationService.cs - Order preparation → Shopping cart: clears cart
POS.Domain/ApplicationService/CartApplicationService.cs - Order preparation → Shipping details: uses details
POS.Domain/ApplicationService/CartApplicationService.cs - Shopping cart → Products: contains items
POS.Domain/Model/Cart.cs - Catalog administration → Product repository: manages catalog
- Establishments → Establishment repository: manages locations
- Order details → Entity Framework store: reads order data
POS/Controllers/OrderDetailsController.cs - Server reports → Order repository: queries orders
- Staff → Catalog administration: manages catalog
- Staff → Establishments: manages locations
- Staff → Server reports: views reports
- Account access → Membership provider: authenticates
- Membership → Membership provider: manages membership
- Membership provider → Membership model: uses model
POS.Infrastructure/Membership/CodeFirstMembershipProvider.cs - Membership provider → Web security: uses security
POS.Infrastructure/Membership/CodeFirstMembershipProvider.cs - Product repository → Entity Framework store: reads and writes
POS.Infrastructure/EfProductRepository.cs - Establishment repository → Entity Framework store: uses context
POS.Infrastructure/EfEstablishmentRepository.cs - Order repository → Entity Framework store: uses context
POS.Infrastructure/EfOrderRepository.cs - Products → Product categories: belongs to
POS.Domain/Model/Product.cs - Products → Establishment model: sold at
POS.Domain/Model/Product.cs - Product categories → Parent categories: groups under
POS.Domain/Model/Category.cs