private void Update() { if (!base.ValidateIfCommandAllowed(Request.Url.AbsoluteUri, ENums.PageCommand.Update)) { return; } if (!ValidateValues("update")) { return; } bool bActionCompleted; AccomodationDTO oAccomData = null; AccomodationMaster oAccomMaster = new AccomodationMaster(); oAccomData = MapControlsToObject(); bActionCompleted = oAccomMaster.Update(oAccomData); if (bActionCompleted == true) { base.DisplayAlert("The record has been updated successfully"); ClearControls(); lblStatus.Text = "Updated Successfully"; } else { lblStatus.Text = "Error Occured while updating: Please refer to the error log."; } oAccomData = null; oAccomMaster = null; //lblStatus.Text = "Updated"; }