public async Task <AddressBookView> Get(long id) { AddressBookModule abMod = new AddressBookModule(); AddressBookView addressBookView = await abMod.AddressBook.Query().GetViewById(id); return(addressBookView); }
public async Task <AddressBookView> Get(int id) { DataService ds = new DataService(this._baseUrl); AddressBookView view = await ds.GetAsync <AddressBookView>("api/AddressBook/" + id.ToString()); return(view); }
void RenderContent() { Padding = new Padding(Utilities.Padding4); Content = new AddressBookView { IsDialogModeEnabled = true }; }
public async Task Put([FromBody] AddressBookView addressBookView) { AddressBookModule abMod = new AddressBookModule(); AddressBook addressBook = await abMod.AddressBook.Query().MapToEntity(addressBookView); abMod.AddressBook.UpdateAddressBook(addressBook).Apply(); }
public async Task Put([FromBody] AddressBookView addressBookView) { DataService ds = new DataService(); await ds.PutAsync <AddressBookView>("api/AddressBook/", addressBookView); }