private void insertMedioComunicacion() { BPMedioComunicacion oBPMedioComunicacion = new BPMedioComunicacion(); ENTMedioComunicacion oENTMedioComunicacion = new ENTMedioComunicacion(); ENTResponse oENTResponse = new ENTResponse(); try { // Formilario oENTMedioComunicacion.Nombre = this.txtActionNombre.Text.Trim(); oENTMedioComunicacion.Descripcion = this.txtActionDescripcion.Text.Trim(); // Transacción oENTResponse = oBPMedioComunicacion.insertcatMedioComunicacion(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 al usuario ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Convert.ToString(Guid.NewGuid()), "alert('Lugar creado con éxito!'); focusControl('" + this.txtNombre.ClientID + "');", true); } catch (Exception ex) { throw (ex); } }