示例#1
0
        private async Task <Ninja> EnforceNinjaExistenceAsync(string clanName, string ninjaKey)
        {
            var remoteNinja = await _ninjaRepository.ReadOneAsync(clanName, ninjaKey);

            if (remoteNinja == null)
            {
                throw new NinjaNotFoundException(clanName, ninjaKey);
            }
            return(remoteNinja);
        }