public ActionResult Index()
        {
            var dict = _myRepo.GetIntStringDict();

            var vm = new HomeViewModel()
            {
                Customer = _myRepo.GetCustomer()
            };

            return(View(vm));
        }
示例#2
0
        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));
        }
示例#3
0
 public Customer GetCustomer()
 {
     return(_next.GetCustomer());
 }