Пример #1
0
        /// <summary>
        /// On initial load of the view, we simply set the viewModel and return it to
        /// the view for the various UI elements, using the vending machine service
        /// </summary>
        /// <returns>Action result with the appropriate viewModel information</returns>
        public ActionResult Index()
        {
            var viewModel = _vmSvc.SetViewModel();

            return(View(viewModel));
        }