public async Task <bool> Download(Torrent torrent) { string location = State.TorrentDropDirectory; bool torrentSuccessfullyDownloaded = await torrent.DownloadTorrentFile(location); if (torrentSuccessfullyDownloaded) { torrent.Download.Location = location; torrent.Download.TimeOfDownload = DateTime.Now; DownloadedTorrents.Add(torrent); Log.Download(torrent); return(true); } else { return(false); } }