How energyz0r/caloriescounter works
CaloriesCounter is a small ASP.NET Core MVC calorie tracker. A user reaches the Home controller through the default route, where food items can be added, edited, deleted, and listed with a summed calorie total; the controller keeps items in a static in-memory list. The controller uses the FoodItem model and returns MVC views. The tree identifies Index and Edit views, but their contents and form wiring were not sampled, so those interactions are not inferred. No persistent database is shown.
Main entry points: HomeController.cs Home actions · Program.cs MVC startup · FoodItems.cs Food item · Index.cshtml Food list
Components 6
Web runtime
- MVC startup
Program.cs
Food tracking
- Home actions
Controllers/HomeController.cs - Food item
Models/FoodItems.cs
Other components
- User
Connections 5
- User → MVC startup: sends requests
- MVC startup → Home actions: routes requests
Program.cs - Home actions → Food item: uses model
Controllers/HomeController.cs - Home actions → Food list: returns list view
Controllers/HomeController.cs - Home actions → Edit form: returns edit view
Controllers/HomeController.cs