Example #1
0
        public async Task <IActionResult> Detail(long id)
        {
            var module = await service.GetByIdAsync(id);

            if (module == null)
            {
                throw new VinoDataNotFoundException("无法取得数据!");
            }
            return(View(module));
        }
Example #2
0
        public async Task OnGetAsync(long id)
        {
            Dto = await _service.GetByIdAsync(id);

            if (Dto == null)
            {
                throw new KuDataNotFoundException();
            }
        }