public List<Models.CommonEntity.ListItemOne> GetPleaseSelect(PageHelper pageHelper, string Name, string contactId, string CustomerType, string VisitActivity)
{
List<ListItemOne> list = GetMyAvailableContacts(pageHelper, Name, contactId, CustomerType, VisitActivity);
List<ListItemOne> lsit1 = GetAvailableContacts(pageHelper, Name, contactId, CustomerType, VisitActivity);
list.AddRange(lsit1);
IEnumerable<IGrouping<string, ListItemOne>> groups = list.GroupBy(t => t.title);
IEnumerable<ListItemOne> smths = groups.SelectMany(group => group);
List<ListItemOne> list2 = smths.ToList();
return list2;
}
{
List<ListItemOne> list = GetMyAvailableContacts(pageHelper, Name, contactId, CustomerType, VisitActivity);
List<ListItemOne> lsit1 = GetAvailableContacts(pageHelper, Name, contactId, CustomerType, VisitActivity);
list.AddRange(lsit1);
IEnumerable<IGrouping<string, ListItemOne>> groups = list.GroupBy(t => t.title);
IEnumerable<ListItemOne> smths = groups.SelectMany(group => group);
List<ListItemOne> list2 = smths.ToList();
return list2;
}