private void btnGetAllAudio_Click(object sender, EventArgs e) { List <AudioDTO> dtos = new DTOManagers.AudioDTOManager().GetAllAudio(); foreach (AudioDTO dto in dtos) { MessageBox.Show(dto.ToString()); } }
private void btnGetAudiosForNews_Click(object sender, EventArgs e) { int id = int.Parse(txtGetAudiosForNews.Text); List <AudioDTO> dtos = new DTOManagers.AudioDTOManager().GetAudiosForNews(id); foreach (AudioDTO dto in dtos) { MessageBox.Show(dto.ToString()); } }