public async Task <IActionResult> Get(uint id) { var result = await _leagueService.GetAsync(id); return(result == null ? (IActionResult)NotFound() : Ok(result)); }
public async Task <IActionResult> Index() { return(Ok(await _service.GetAsync())); }