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(); }
public void DeleteAlbum(m_cls_Album album) { if (album == null) { throw new ArgumentNullException(nameof(album)); } _context.Albums.Remove(album); //throw new NotImplementedException(); }
// // 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(); }