Skip to content

Learning how to get elements from controller to views and use the Razor power to show dynamic value with c#.

Notifications You must be signed in to change notification settings

wild-code-school-projects/wild-asp-razor

Repository files navigation

wild-asp-razor

Learning how to get elements from controller to views and use the Razor power to show dynamic value with c#.

Objective:

Create a page to display a list of expenses in a user-friendly table format.

Key Tasks:

  • 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.

Deliverables:

  • 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.

Additional Considerations:

  • 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.

image

About

Learning how to get elements from controller to views and use the Razor power to show dynamic value with c#.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published