public async Task <ActionResult <Torrent> > Get(Guid id) { var result = await _torrents.GetById(id); if (result == null) { throw new Exception("Torrent not found"); } return(Ok(result)); }
public async Task <ActionResult <Torrent> > Get(Guid id) { var result = await _torrents.GetById(id); if (result == null) { throw new Exception("Torrent not found"); } return(Ok(result)); }