Dundee made two changes when Luke McCowan and Alex Jakubiak kept their places after coming on as subs on Saturday. They replaced Ben Williamson and Paul McMullan, who were on the bench.
Dundee started very well and looked good going forward, the keeper made a superb save to deny Zach Robinson's shot after lovely approach play by Lyall Cameron and Alex Jakubiak. A minute later McCowan had a shot blocked and from the corner Ryan Sweeney scored with a well placed header on 13 minutes.
Dundee were well in control but soon after Ayr broke and scored to level the game at 1-1. A few minutes later and McCowan and Cameron had good efforts saved to keep Dundee at bay.
The last twenty minutes were end to end with both teams failed to take the lead.
Second half and Dundee stepped up and forced Ayr into having no space to play their football. It was good to see. A beautiful long pass by Cameron allowed McCowan to run in from the right but he fired over the bar. First Robinson and then Mulligan ran along the byline from the right and hit low crosses through the goalmouth with no Dark Blues able to get on the end.
After 59 minutes the Dee broke through. Robinson burst into the penalty area and, instead of shooting, unselfishly set up Alex Jakubiak to shoot past the keeper from 12 yards.
Both Hannant and Jakubiak had good efforts on goal but both went high over the bar. Then Paul McMullan replaced Luke Hannant as Dundee went for the third and killer goal.
And it arrived on 80 minutes when Jakubiak and McCowan quickly swapped passes before Luke McCowan cut inside and scored from 12 yards despite the efforts of a defender on the line.
Dundee saw the game out to get the three vital points, it was good to see them playing better and hopefully they can keep winning to put pressure on Queens Park.
Dundee: Legzdins, Mulligan, Ashcroft, Sweeney (c), Marshall, McCowan, McGhee, Cameron (Byrne 90+1), Hannant (McMullan 72), Jakubiak (Anderson 90+1), Robinson. Unused Subs: Lawlor (gk), Sharp (gk), Robertson, Williamson, Fisher.
Referee: Steven Kirkland
Att: 4,007