示例#1
0
        public void UpdateAlbum(m_cls_Album album)
        {
            //not implemented

            //Repository Pattern - is an abstraction that reduces complexity and aims to make the code
            //safe for the repository implementation, persistance ignorant.

            //throw new NotImplementedException();
        }
示例#2
0
        public void DeleteAlbum(m_cls_Album album)
        {
            if (album == null)
            {
                throw new ArgumentNullException(nameof(album));
            }

            _context.Albums.Remove(album);

            //throw new NotImplementedException();
        }
示例#3
0
        //

        //
        public void AddAlbum(Guid bandId, m_cls_Album album)
        {
            if (bandId == Guid.Empty)
            {
                throw new ArgumentNullException(nameof(bandId));
            }

            if (album == null)
            {
                throw new ArgumentNullException(nameof(album));
            }

            album.BandId = bandId;
            _context.Albums.Add(album);

            //throw new NotImplementedException();
        }