public Artist Get(int id)
        {
            var artistDAC = new ArtistDAC();
            var result    = artistDAC.SelectById(id);

            return(result);
        }
        public void BorrarArtista(int id)
        {
            var artistDAC = new ArtistDAC();

            artistDAC.DeleteById(id);
            //db.Delete(id);
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Artist Find(int id)
        {
            Artist result    = default(Artist);
            var    artistDAC = new ArtistDAC();

            result = artistDAC.SelectById(id);
            return(result);
        }
示例#4
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public List <Artist> List()
        {
            List <Artist> result    = default(List <Artist>);
            var           artistDAC = new ArtistDAC();

            result = artistDAC.Select();
            return(result);
        }
示例#5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="artist"></param>
        /// <returns></returns>
        public Artist Add(Artist artist)
        {
            Artist result    = default(Artist);
            var    artistDAC = new ArtistDAC();

            result = artistDAC.Create(artist);
            return(result);
        }
        public Artist AgregarArtista(Artist artist)
        {
            //return db.Create(artist);
            Artist result    = default(Artist);
            var    artistDAC = new ArtistDAC();

            result = artistDAC.Create(artist);
            return(result);
        }
        public List <Artist> ListarTodosLosArtistas()
        {
            // return db.Get();

            List <Artist> result    = default(List <Artist>);
            var           artistDAC = new ArtistDAC();

            result = artistDAC.Select();
            return(result);
        }
示例#8
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="artist"></param>
        public void Edit(Artist artist)
        {
            var artistDAC = new ArtistDAC();

            artistDAC.UpdateById(artist);
        }
示例#9
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        public void Remove(int id)
        {
            var artistDAC = new ArtistDAC();

            artistDAC.DeleteById(id);
        }