Пример #1
0
        public int InsertGenre(String GenreName)
        {
            MediaLogic mediaLogic = new MediaLogic();

            return(mediaLogic.InsertGenre(GenreName));
        }
Пример #2
0
 private void btnAddGenre_Click(object sender, EventArgs e)
 {
     _mediaLogic.InsertGenre(txtGenreName.Text);
     dgvGenre.DataSource = _mediaLogic.ListGenres();
 }