private void BtSave_Click(object sender, EventArgs e) { List <LandModel> list = new List <LandModel>(); APIConnection connector = new APIConnection(); String name = editTextName.Text; String des = editTextDes.Text; // if (!name.Equals("")) { bool isNew = connector.PostData(APIConnection.AddNewLand, new AddLandModel() { Land_name = name, Land_address = des, Land_image = link, User_id = userId, Land_area = 30.0 }); if (isNew == true) { Toast.MakeText(this.Activity, "Successfully Added", ToastLength.Short).Show(); } } else { AlertDialog.Builder alert = new AlertDialog.Builder(Context); alert.SetTitle("FBI Warning!!!"); alert.SetMessage("Are you 18+ years old! - Land Name could not be empty"); alert.SetNegativeButton("Tớ hiểu rồi, Thanks", delegate { alert.Dispose(); }); Dialog dialog = alert.Create(); dialog.SetCanceledOnTouchOutside(true); dialog.Show(); } }