コード例 #1
0
        public void ArtistEdit(Models.Artist art)
        {
            var dbArtist = ArtistMapper.ToDatabase(art);

            _dbContext.Artist.Update(dbArtist);
            _dbContext.SaveChanges();
        }
コード例 #2
0
        public void Save(Models.Artist artist)
        {
            var dbArtist = ArtistMapper.ToDatabase(artist);

            _dbContext.Artist.Add(dbArtist);
            _dbContext.SaveChanges();
        }