public async Task <IActionResult> GetOne( Guid id) { var result = await teamsStore.TryGetTeamAsync(id); return(result.MatchResult <IActionResult>( NotFound(), just => Ok(just.MapFromDto()))); }
public Task <Maybe <Team> > TryGetTeamAsync(Guid id) { return(inner.TryGetTeamAsync(id)); }