示例#1
0
        private async Task <Outfit> GetCensusOutfit(string outfitId)
        {
            var censusOutfit = await _censusOutfit.GetOutfitAsync(outfitId);

            return(censusOutfit == null
                ? null
                : ConvertToDbModel(censusOutfit));
        }
示例#2
0
        private async Task <Outfit> GetCensusOutfit(string outfitId)
        {
            var censusOutfit = await _censusOutfit.GetOutfitAsync(outfitId);

            return(censusOutfit == null
                ? null
                : new Outfit
            {
                Id = censusOutfit.OutfitId,
                Alias = censusOutfit.Alias,
                Name = censusOutfit.Name,
                LeaderCharacterId = censusOutfit.LeaderCharacterId,
                CreatedDate = censusOutfit.TimeCreated,
                MemberCount = censusOutfit.MemberCount
            });
        }