public async Task <IActionResult> Detail(long id) { var module = await service.GetByIdAsync(id); if (module == null) { throw new VinoDataNotFoundException("无法取得数据!"); } return(View(module)); }
public async Task OnGetAsync(long id) { Dto = await _service.GetByIdAsync(id); if (Dto == null) { throw new KuDataNotFoundException(); } }