public List <CharacterAPI> GetAllCharacter() { List <CharacterAPI> liste = new List <CharacterAPI>(); BusinessLayer.BusinessManager bm = new BusinessLayer.BusinessManager(); foreach (Character character in bm.GetAllCharacters()) { liste.Add(new CharacterAPI(character)); } return(liste); }