public void DeleteSonglist(int songlistId)
 {
     using (var uow = UnitOfWorkProvider.Create())
     {
         _songlistRepository.Delete(songlistId);
         uow.Commit();
     }
 }
Example #2
0
        public void DeleteSonglist(int songlistId)
        {
            if (songlistId < 1)
            {
                throw new ArgumentOutOfRangeException("Songlist Service - DeleteSonglist(...) songlistId cannot be lesser than 1");
            }

            using (var uow = UnitOfWorkProvider.Create())
            {
                songlistRepository.Delete(songlistId);
                uow.Commit();
            }
        }