private void updateMedioComunicacion(Int32 MedioComunicacionId) { BPMedioComunicacion oBPMedioComunicacion = new BPMedioComunicacion(); ENTMedioComunicacion oENTMedioComunicacion = new ENTMedioComunicacion(); ENTResponse oENTResponse = new ENTResponse(); try { // Formulario oENTMedioComunicacion.MedioComunicacionId = MedioComunicacionId; oENTMedioComunicacion.Nombre = this.txtActionNombre.Text.Trim(); oENTMedioComunicacion.Descripcion = this.txtActionDescripcion.Text.Trim(); // Transacción oENTResponse = oBPMedioComunicacion.updatecatMedioComunicacion(oENTMedioComunicacion); // Validaciones if (oENTResponse.GeneratesException) { throw (new Exception(oENTResponse.sErrorMessage)); } if (oENTResponse.sMessage != "") { throw (new Exception(oENTResponse.sMessage)); } // Transacción exitosa ClearActionPanel(); // Actualizar grid selectMedioComunicacion(); // Mensaje de usuario ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Convert.ToString(Guid.NewGuid()), "alert('Información actualizada con éxito!'); focusControl('" + this.txtNombre.ClientID + "');", true); } catch (Exception ex) { throw (ex); } }