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

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

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