Beispiel #1
0
 public void Insert(Modelo.Playlist l)
 {
     if (l == null)
     {
         throw new ArgumentNullException("Os dados não foram informados, por favor insira os dados necessários!");
     }
     if (p.Select().Where(r => r.Id == l.Id).Count() > 0)
     {
         throw new InvalidOperationException("PlayList já cadastrado...");
     }
     p.Insert(l);
 }
Beispiel #2
0
 public void Delete(Modelo.Playlist l)
 {
     p.Delete(l);
 }
Beispiel #3
0
 public void Update(Modelo.Playlist l)
 {
     p.Update(l);
 }