A special National Investigation Agency (NIA) court in Bengaluru on Wednesday held two Jamaat-Ul-Mujahideen (JMB) members from West Bengal guilty of carrying out terror-related activities in and around the city and sentenced them to seven-year rigorous imprisonment with fines.