Skip to content

marlonscloud/vending-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

vending-machine-oxford-economics

Sample code written by Marlon Dedakis - 29/11/2022

Notes

  • A service called IProductsDomain is initialized in Program.cs (line 8)
  • The Home Controller injects the IProductsDomain and uses this domain to get all products
  • Models > ProductViewModel contains the Name and Price of each product, since this is a demo project, the ID is generated dynamically upon retrieving the ProductId (as a GUID)
  • The list of Products is then passed as a ViewModel to the Razor view so that it can be strongly typed within the view
  • Please note accessibility has not been implemented, i.e. tabbing skips the 'Insert coin' element
  • Formatting of string and parsing on number types has not been implemented, number formats are not currently supported

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published