// add new genre data into AppModel
        public ActionResult AddGenre(GenreViewDTO genreView)
        {
            // get data from user input
            GenreWSReference.GenreDTO genre = new GenreWSReference.GenreDTO
            {
                GenreName = genreView.GenreName
            };

            // add data into database and confirm
            if (genreClient.IsGenreInserted(genre))
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                return(View("Create"));
            }
        }
        // save genre after editing
        public ActionResult SaveGenre(GenreViewDTO genreView)
        {
            // transfer data from view to controller
            GenreWSReference.GenreDTO genre = new GenreWSReference.GenreDTO
            {
                GID       = genreView.GID,
                GenreName = genreView.GenreName
            };

            // edit database in model
            if (genreClient.IsGenreUpdated(genre))
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                return(View("Edit"));
            }
        }