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