コード例 #1
0
        public async Task <IActionResult> GetOne(
            Guid id)
        {
            var result = await teamsStore.TryGetTeamAsync(id);

            return(result.MatchResult <IActionResult>(
                       NotFound(),
                       just =>
                       Ok(just.MapFromDto())));
        }
コード例 #2
0
 public Task <Maybe <Team> > TryGetTeamAsync(Guid id)
 {
     return(inner.TryGetTeamAsync(id));
 }