private void InsertarTarifaHotel() { var tHotel = new TarifaHotel { Precio = txtPrecio.Text, }; var taHotelBo = new TarifaHotelBO(); try { taHotelBo.RegistrarTarifaHotel(tHotel); MonstrarMensaje("Tarifa hotel creado satisfactoriamente"); } catch (Exception e) { MonstrarError(e.Message); } }
private void EliminarTarifaHotel() { var tHotel = new TarifaHotel { Precio = txtPrecio.Text, }; var taHotelBo = new TarifaHotelBO(); try { if (!txtPrecio.Text.Equals("")) { taHotelBo.Eliminar(txtPrecio.Text.Trim()); MonstrarMensaje(" Tarifa de Hotel eliminado satisfactoriamente"); } } catch (Exception e) { MonstrarError(e.Message); } }