Question: in which book do alec and magnus get together?
Answer: Magnus and Alec began secretly dating, even though Alec still thought he was in love with Jace. In "City of Ashes", Alec continued to hide their relationship from the others because homosexuality wasn't well-accepted among Shadowhunters.