public void ObtenerParametrosSendGrid() { parametrosSendGrid = new ParametrosSendGrid(); SqlCommand query = new SqlCommand(); query.CommandType = CommandType.Text; query.CommandText = "select * from ParametrosSendGrid"; DataTable dt = this.Busquedas(query); foreach (DataRow item in dt.Rows) { parametrosSendGrid.UidParametroSendGrid = Guid.Parse(item["UidParametroSendGrid"].ToString()); parametrosSendGrid.VchApiKey = item["VchApiKey"].ToString(); } }
public bool ActualizarParametrosSendGrid(ParametrosSendGrid parametrosSendGrid) { bool Resultado = false; SqlCommand comando = new SqlCommand(); try { comando.CommandType = System.Data.CommandType.StoredProcedure; comando.CommandText = "sp_ParametrosSendGridActualizar"; //NoCreado comando.Parameters.Add("@VchApiKey", SqlDbType.VarChar); comando.Parameters["@VchApiKey"].Value = parametrosSendGrid.VchApiKey; Resultado = this.ManipulacionDeDatos(comando); } catch (Exception) { throw; } return(Resultado); }
public void CargarParametrosSendGrid() { parametrosSendGrid = new ParametrosSendGrid(); }