public async Task <IActionResult> Details(int diverId) { var diver = await _diverService.GetAsync(diverId); return(View("Details", diver)); }
public async Task <IActionResult> GetAsync([FromRoute] int diverId) { var diver = await _diverService.GetAsync(diverId); return(Ok(diver)); }