SANTA ANA – A youth pastor pleaded guilty Monday and was immediately sentenced to six years in prison for sexually assaulting two underage boys at church events in Aliso Viejo.

Brandon Ernis Lee McDade of Mission Viejo, 31, pleaded guilty to a count of committing lewd acts on a child younger than 14, two counts of committing lewd acts on a child between 14 and 15, all felonies, and a misdemeanor count of child annoyance, according to the Orange County District Attorney’s Office. McDade was also ordered to register as a sex offender for the rest of his life.

McDade was a youth pastor at Grace Hills Church in Aliso Viejo when he met the victims, prosecutors said.

The molesting happened on church grounds and with one of the victims at a movie theater in Orange County, prosecutors said. He was arrested in December 2015.