protected void btnSave_Click(object sender, EventArgs e) { try { PhysicalCountInformation.Copy((PhysicalCountInfo)PhysicalCountEditor.DataSource); inventoryService.SavePhysicalCount(PhysicalCountInformation); btnCancel.Text = " Close "; } catch (Exception ex) { errorDisplayer.ShowErrorMessage(ex.Message); } }