internal static void SetRandomPerson(MainViewModel context, Person result, int index) { PersonViewModel person = new PersonViewModel() { Name = string.Format("{0} {1}", result.first_name, result.last_name), Url = result.url, WebUrl = result.web_url, Gender = result.gender, CandidateFor = result.candidate_for, MediumImage = result.images.medium, ListNumber = result.list_number, Party = new PartyViewModel() { Id = result.party.id, Name = result.party.name, Logo = result.party.avatar } }; context.RandomPeople[index] = null; context.RandomPeople[index] = person; }
internal static void SetSelectedPerson(MainViewModel context, Person result) { throw new NotImplementedException(); }
public void SavePerson(Person person) { connection.Insert(person); }