void Save()
 {
     if (!IsValidInput())
     {
         MessageBox.Show("User Name is mandatory.");
         return;
     }
     string UserId;
     WebAPICaller myWebAPICaller = new WebAPICaller();
     UserProfileModel model = new UserProfileModel();
     model.FirstName = txtUserName.Text;
     model.Address1 = txtAddress.Text;
     model.MobileNumber = txtMobileNo.Text;
     model.ActiveVehicleNumber = txtVehclNo.Text;
     model.City=txtCity.Text ;
     model.Pincode=txtPincode.Text ;
     model.EmailID=txtEmailID.Text ;
     if (IsolatedStorageSettings.ApplicationSettings.Contains(_UserID))
     {
         UserId = IsolatedStorageSettings.ApplicationSettings[_UserID].ToString();
         model.UserID = System .Convert.ToInt32(UserId);
         myWebAPICaller.POST("UserProfile/PostUpdateUserProfile/", model);
     }
     else
     {
         myWebAPICaller.ActionOnUploadCompleted = new DlgtActionOnUploadCompleted(ActionOn_SaveUserProfile);
         myWebAPICaller.POST("UserProfile/PostUserProfile/", model);
     }
     NavigationService.GoBack();
 }
 void Save()
 {
     if (!IsValidInput())
     {
         MessageBox.Show("User Name is mandatory.");
         return;
     }
     WebAPICaller myWebAPICaller = new WebAPICaller();
     UserProfileModel model = new UserProfileModel();
     model.FirstName = txtUserName.Text;
     model.Address1 = txtAddress.Text;
     model.MobileNumber = txtMobileNo.Text;
     model.ActiveVehicleNumber = txtVehclNo.Text;
     model.City=txtCity.Text ;
     model.Pincode=txtPincode.Text ;
     model.EmailID=txtEmailID.Text ;
     if (ParkingBase.UserID != null)
     {
         model.UserID = System.Convert.ToInt32(ParkingBase.UserID);
         myWebAPICaller.POST("UserProfile/PostUpdateUserProfile/", model);
     }
     else
     {
         myWebAPICaller.ActionOnUploadCompleted = new DlgtActionOnUploadCompleted(ActionOn_SaveUserProfile);
         myWebAPICaller.POST("UserProfile/PostUserProfile/", model);
     }
     NavigationService.GoBack();
 }
 private void AllocateParkingSlots(string barcodeNo, bool  isAlloc )
 {
     WebAPICaller myWebAPICaller = new WebAPICaller();
     string jsonData = "{'BarcodeNo':'" + barcodeNo + "','IsOccupied':'" + isAlloc.ToString() + "'}";
     myWebAPICaller.POST("ParkingSlot", jsonData );
 }