57
1
using System;
2
using System.Collections.Generic;
3
4
using System.Linq;
5
public class Program
6
{
7
public class FindPersonResultsViewModel
8
{
9
public int PersonID { get; set; }
10
public bool ExistInContactManager { get; set; }
11
public bool ActionType { get; set; }
12
}
13
14
public class PersonViewModel
15
{
16
public int PersonID { get; set; }
17
}
18
public static void Main()
19
{
20
var findPersonResultsViewModel = new List<FindPersonResultsViewModel>()
21
{ new FindPersonResultsViewModel { PersonID = 2, ActionType = false, ExistInContactManager = false },
22
new FindPersonResultsViewModel { PersonID = 3, ActionType = false, ExistInContactManager = false },
23
new FindPersonResultsViewModel { PersonID = 4, ActionType = false, ExistInContactManager = false },
24
new FindPersonResultsViewModel { PersonID = 5, ActionType = false, ExistInContactManager = false },
Cached Result
PersonID : 2, ActionType :True, ExistInContactManager :True
PersonID : 3, ActionType :False, ExistInContactManager :False
PersonID : 4, ActionType :False, ExistInContactManager :False
PersonID : 5, ActionType :False, ExistInContactManager :False
PersonID : 6, ActionType :True, ExistInContactManager :True
PersonID : 3, ActionType :False, ExistInContactManager :False
PersonID : 4, ActionType :False, ExistInContactManager :False
PersonID : 5, ActionType :False, ExistInContactManager :False
PersonID : 6, ActionType :True, ExistInContactManager :True