private async void InsertBloodDonor(BloodDonor bloodDonor)
        {
            try
            {
                // This code inserts a new BloodDonor into the database. When the operation completes
                // and Mobile Services has assigned an Id, the item is added to the CollectionView
                await bloodDonorTable.InsertAsync(bloodDonor);
                //donors.Add(bloodDonor);

                NavigateToSearch("success");

                //if (bloodDonor.Id > 0)
                //{
                //    NavigateToSearch("success");
                //}
                //else
                //{
                //    NavigateToSearch("failure");
                //}
                //SuccessMsg.Text = "Donor Registered successfully.. ID = " + bloodDonor.Id;
            }
            catch (Exception E)
            {

            }
        }
        private void RegisterDonor()
        {
            var bloodDonor = new BloodDonor
            {
                Email = Email,
                Address = Address,
                City = City,
                Gender = SelectedGender,
                BloodGroup = SelectedBloodGroup,
                Country = SelectedCountry,
                //DateOfBirth = new DateTime(Convert.ToInt32(SelectedYear),  ,
                FullName = FullName,
                LastDonatedOn = LastDonatedOn,
                MobileNumber = MobileNumber,
                State = SelectedCountry,
                TelephoneNumber = TelephoneNumber
            };

            var bloodDonor2 = new BloodDonor
            {
                Email = "*****@*****.**",
                Address = "606, b3, anita residency, Bibwewadi-Kondhava road",
                City = "Pune",
                Gender = "Male",
                BloodGroup = "AB-ve",
                Country = "India",
                DateOfBirth = new DateTime(1980, 01, 01),
                FullName = "Ajay Jadhav",
                LastDonatedOn = new DateTime(2011, 01, 01),
                MobileNumber = "9881727525",
                State = "MS"
                //TelephoneNumber = ""
            };

            InsertBloodDonor(bloodDonor);
        }