Learning how to get elements from controller to views and use the Razor power to show dynamic value with c#.
Create a page to display a list of expenses in a user-friendly table format.
- Develop a class "Expenditure" to represent each expense, including name, date, and price in €.
- Implement a controller to send a minimum of 3 expenses to a view.
- Design a view to receive an IEnumerable model type and display each expense's information in an HTML table.
- Calculate and display the total expense at the end of the table.
- A well-structured page presenting expenses in a readable format.
- Implementation of Expenditure class, controller, and view following specified requirements.
- Accurate calculation and display of the total expenses.
- Ensure the table layout enhances readability for users.
- Implement responsive design for optimal viewing on various devices.
- Validate input data to maintain data integrity and prevent errors.