public Task <int> SaveTrackAsync(BasicAudioTrack track)
 {
     if (track.Id != 0)
     {
         return(_database.UpdateAsync(track));
     }
     else
     {
         return(_database.InsertAsync(track));
     }
 }
Пример #2
0
 public virtual Task <int> SaveTrackAsync(BasicAudioTrack track)
 {
     /*
      * if (track.Id != null)
      * {
      *      return _database.UpdateAsync(track);
      * }
      * else
      * {
      *
      * }
      */
     return(_database.InsertAsync(track));
 }