public IActionResult Content(int id)
        {
            var torrent = db.Torrents.FirstOrDefault(c => c.TorrentId == id);

            torrent.Content = BBCodeHelper.Format(torrent.Content);
            torrent.Files   = db.Files.Where(f => f.TorrentId == id).ToArray();


            return(View(torrent));
        }
        public async Task <TorrentDescriptionViewModel> GetTorrent(int id)
        {
            var torrent = await _torrentRepository.GetByIdAsync(id);

            var t = new TorrentDescriptionViewModel()
            {
                Id          = torrent.Id,
                Title       = torrent.Title,
                RegistredAt = torrent.RegistredAt,
                Size        = torrent.Size,
                Content     = BBCodeHelper.Format(torrent.Content),
                Dir_Name    = torrent.Dir_Name,
                Forum       = torrent.Forum,
                Files       = torrent.Files
            };

            return(t);
        }