コード例 #1
0
        protected Dictionary <string, INPerson> GetPersonsWithUniqueDisplayNames()
        {
            var people        = _context.GetPeople();
            var alivePeople   = people.Where(x => !x.Value.IsDeleted).OrderBy(x => x.Value.ActualName());
            var deletedPeople = people.Where(x => x.Value.IsDeleted).OrderBy(x => x.Value.ActualName());

            var personList = alivePeople.ToList();

            personList.AddRange(deletedPeople);
            return(GetObjectsWithUniqueNames(personList.Select(x => x.Value), x => x.DisplayName, x => x.Login));
        }