Example #1
0
        public async Task <AddressBookView> Get(long id)
        {
            AddressBookModule abMod           = new AddressBookModule();
            AddressBookView   addressBookView = await abMod.AddressBook.Query().GetViewById(id);

            return(addressBookView);
        }
Example #2
0
        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
            };
        }
Example #4
0
        public async Task Put([FromBody] AddressBookView addressBookView)
        {
            AddressBookModule abMod = new AddressBookModule();

            AddressBook addressBook = await abMod.AddressBook.Query().MapToEntity(addressBookView);

            abMod.AddressBook.UpdateAddressBook(addressBook).Apply();
        }
Example #5
0
 public async Task Put([FromBody] AddressBookView addressBookView)
 {
     DataService ds = new DataService();
     await ds.PutAsync <AddressBookView>("api/AddressBook/", addressBookView);
 }