Exemple #1
0
 public async Task <IActionResult> Delete(Guid id)
 {
     try
     {
         return(Ok(await _repo.DeleteAsync(id)));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex));
     }
 }
Exemple #2
0
 public async Task <bool> DeleteTrackAsync(int id, CancellationToken ct = default(CancellationToken))
 {
     return(await _trackRepository.DeleteAsync(id, ct));
 }
Exemple #3
0
 public async Task RemoveTrack(Models.Track track)
 {
     await _track.DeleteAsync(track);
 }