/// <summary> /// <description>Update Employee Profile</description> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void onUpdateClick(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(txtUserName.Text) || string.IsNullOrEmpty(txtName.Text) || string.IsNullOrEmpty(txtPassword.Text) || string.IsNullOrEmpty(txtDate.Text) || string.IsNullOrEmpty(checkboxText) || string.IsNullOrEmpty(selectedDesignation) || string.IsNullOrEmpty(encodedImgString)) { Snackbar.Make(txtUserName, GetString(Resource.String.require_all_Details), Snackbar.LengthLong).Show(); //GlobalConst.alertMessageBox(this, "Requir", "Please Enter All the Details..!!"); } else { EmployeeRegisterData employeeRegisterData = new EmployeeRegisterData() { imgUrl = encodedImgString, name = txtName.Text, userName = txtUserName.Text, password = txtPassword.Text, date = txtDate.Text, gender = rdGender.Text, hobbies = checkboxText, designation = selectedDesignation }; GlobalConst.updateEmployee(employeeRegisterData, id_loction); // var intent = new Intent(this, typeof(EmployeeListActivity)); //StartActivity(intent); Finish(); } } catch (Exception ex) { Toast.MakeText(this, "Error " + ex, ToastLength.Short).Show(); } }