void Init(Contact contact) { contactsRestService = new ContactsRestService(); UpdateContactCommand = new Command(() => updateContact()); this.contact = contact; }
void Init() { contactsRestService = new ContactsRestService(); GetContactsCommand = new Command(() => getContacts()); DeleteContactCommand = new Command((obj) => deleteContact((Contact)obj)); }
void Init() { contactsRestService = new ContactsRestService(); AddContactCommand = new Command(() => addContacts()); }