コード例 #1
0
        public string GetName()
        {
            var name = _next.GetName();

            name = $"({name})";
            return(name);
        }
コード例 #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));
        }