public ActionResult Index() { var dict = _myRepo.GetIntStringDict(); var vm = new HomeViewModel() { Customer = _myRepo.GetCustomer() }; return(View(vm)); }
public async Task <IActionResult> Index() { var vm = new HomeViewModel() { Customer = _myRepo.GetCustomer(), Name = _decorateRepo.GetName(), SingletonName = _singletonRepo.GetSingletonName(), NameAsync = await _myRepo.GetNameAsync() }; return(View(vm)); }
public Customer GetCustomer() { return(_next.GetCustomer()); }