public int AgregarTurnoPreferencial(EntTurnosPreferencial ObjEntTurnoPreferencial)
        {
            int Resultado = 0;
            SqlCommand cmd = new SqlCommand("AgregarTurnoPreferencial", Conexion);
            cmd.CommandType = CommandType.StoredProcedure;

            cmd.Parameters.AddWithValue("@Turno", ObjEntTurnoPreferencial.Turno);
            cmd.Parameters.AddWithValue("@Ventanilla", ObjEntTurnoPreferencial.Ventanilla);
            cmd.Parameters.AddWithValue("@FechaHora", ObjEntTurnoPreferencial.FechaHora);
            try
            {
                AbrirConexion();
                Resultado = cmd.ExecuteNonQuery();
            }
            catch (Exception e)
            {
                throw new Exception("Error al tratar de agregar el turno", e);
            }
            finally
            {
                Conexion.Close();
                cmd.Dispose();
            }
            return Resultado;
        }
 public int AgregarTurnoPreferencial(EntTurnosPreferencial ObjEntTurnoPreferencial)
 {
     return ObjNegTurnosPreferencial.AgregarTurnoPreferencial(ObjEntTurnoPreferencial);
 }