コード例 #1
0
        public async Task <IActionResult> Get(
            [FromHeader(Name = "personal-number")] string personalNumber)
        {
            var result = await teamsStore.GetTeamsAsync();

            var resource = result.Select(TeamMapper.MapFromDto);

            return(Ok(resource));
        }
コード例 #2
0
 public Task <IEnumerable <Team> > GetTeamsAsync()
 {
     return(inner.GetTeamsAsync());
 }