public bool Agregar(ubicacionesBLL OubicacionesBLL) { SqlCommand cmdCommando = new SqlCommand(); cmdCommando.CommandText = "INSERT INTO ubicaciones (ubicaciones, latitud, longitud, nombreLocal, estado, idCliente) VALUES(@ubicaciones, @latitud, @longitud, @nombreLocal, 1, @idCliente)"; cmdCommando.Parameters.Add("@ubicaciones", SqlDbType.VarChar).Value = OubicacionesBLL.Ubicacion; cmdCommando.Parameters.Add("@latitud", SqlDbType.VarChar).Value = OubicacionesBLL.Latitud; cmdCommando.Parameters.Add("@longitud", SqlDbType.VarChar).Value = OubicacionesBLL.Longitud; cmdCommando.Parameters.Add("@nombreLocal", SqlDbType.VarChar).Value = OubicacionesBLL.nombreLocal; //cmdCommando.Parameters.Add("@estado", SqlDbType.Bit).Value = OubicacionesBLL.nombreLocal; cmdCommando.Parameters.Add("@idCliente", SqlDbType.VarChar).Value = OubicacionesBLL.idCliente; return(oConexion.EjecutarComandoSQL(cmdCommando)); }