public DataFormViewModel()
        {
            ContactsInfo contact = new ContactsInfo();

            contact.Name          = "Jhon";
            contact.ContactNumber = 12345;
            contact.Email         = "*****@*****.**";
            contact.BirthDate     = new DateTime(1990, 01, 01);

            App.Database.SaveItemAsync(contact);
            this.GetDataModel();

            SaveCommand = new Command <SfDataForm>(SaveInputValues);
        }
        public ViewModel()
        {
            this.ContactsInfo = new ContactsInfo();

            //// Deserialize the JSON data as list of JSON data model.
            List <JSONData> jsonDataCollection = JsonConvert.DeserializeObject <List <JSONData> >(JsonData);

            foreach (var data in jsonDataCollection)
            {
                this.ContactsInfo.Name        = data.UserName;
                this.ContactsInfo.Gender      = data.UserGender;
                this.ContactsInfo.Email       = data.UserMail;
                this.ContactsInfo.Country     = data.UserCountry;
                this.ContactsInfo.DateOfBirth = Convert.ToDateTime(data.UserBirthDate);
            }
        }
 public DataFormPageModel()
 {
     this.contactsInfo = new ContactsInfo();
 }
 public DataFormViewModel()
 {
     this.contactsInfo = new ContactsInfo();
 }
 public Task <int> DeleteItemAsync(ContactsInfo item)
 {
     return(Database.DeleteAsync(item));
 }
 public Task <int> SaveItemAsync(ContactsInfo item)
 {
     return(Database.InsertAsync(item));
 }