示例#1
0
        public async Task <IActionResult> Get(uint id)
        {
            var result = await _leagueService.GetAsync(id);

            return(result == null ? (IActionResult)NotFound() : Ok(result));
        }
示例#2
0
 public async Task <IActionResult> Index()
 {
     return(Ok(await _service.GetAsync()));
 }