public void FillArmorData(ArmorNotificationDto data) { var defenceDto = new DefenceNotificationDto { Tags = new List <string>() }; range.FillDefenceData(defenceDto); defenceDto.Tags = tags.Select(tag => tag.ToString()).ToList(); data.Defence.Add(defenceDto); }
public void FillSquadData(SquadNotificationDto data) { var armorDto = new ArmorNotificationDto { Defence = new List <DefenceNotificationDto>(), Tags = new List <string>() }; armorDto.Name = Name; defense.ForEach(offence => offence.FillArmorData(armorDto)); armorDto.Tags = tags.Select(tag => tag.ToString()).ToList(); data.Armors.Add(armorDto); }