예제 #1
0
        private async Task <IList <ContactGroup> > GetContacts()
        {
            var doctors = await GetDoctors();

            var healthStructs = await GetHealthStructs();

            var groupDoc    = new ContactGroup("Médecin");
            var groupHealth = new ContactGroup("Structure de Santé");

            if (doctors.Count > 0)
            {
                groupDoc.AddRange(doctors.OrderBy(d => !d.star));
            }
            if (healthStructs.Count > 0)
            {
                groupHealth.AddRange(healthStructs.OrderBy(d => !d.star));
            }
            return(new List <ContactGroup>
            {
                groupDoc, groupHealth
            });
        }