public void TSaveBoton() { EntBoton entBoton = new EntBoton { bActivo = true, bBaja = false, iIdBoton = 0, iIdModulo = 2, iIdSubModulo = 1, iIdUsuarioMod = 1, sNombre = "Agregar" }; BusBoton busBoton = new BusBoton(); var res = busBoton.BSaveBoton(entBoton); }
public IMDResponse <bool> CCreateBoton([FromBody] EntBoton entBoton) { IMDResponse <bool> response = new IMDResponse <bool>(); string metodo = nameof(this.CCreateModulo); logger.Info(IMDSerialize.Serialize(67823458338139, $"Inicia {metodo}([FromBody]EntBoton entBoton)", entBoton)); try { BusBoton busBoton = new BusBoton(); response = busBoton.BSaveBoton(entBoton); } catch (Exception ex) { response.Code = 67823458122133; response.Message = "Ocurrió un error inesperado en el servicio al guardar el botón."; logger.Error(IMDSerialize.Serialize(67823458338139, $"Error en {metodo}([FromBody]EntBoton entBoton): {ex.Message}", entBoton, ex, response)); } return(response); }