예제 #1
0
        public IActionResult Get(int id)
        {
            var item = nhlService.GetTeamById(id);

            if (item == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(item));
        }
예제 #2
0
 public ITeam GetTeamById(int id)
 {
     return(serviceAdapter.GetTeamById(id));
 }