Exemple #1
0
        public ActionResult PostComment()
        {
            var servico = new TorrentServices();

            servico.PostarComentario(Request, UsuarioLogado);

            return(RedirectToAction("Detail", new { id = Request.Form["IdTorrent"] }));
        }
Exemple #2
0
        public ActionResult Upload(TorrentUploadModel model)
        {
            SetupListasViewBag();

            if (ModelState.IsValid)
            {
                var torrentService = new TorrentServices();
                torrentService.LancarTorrent(Request, model, UsuarioLogado, PastaTorrents, PastaLegendas);

                return(View("UploadSucceded"));
            }

            ViewBag.EmValidacao = true;
            ViewBag.IdImdb      = model.IdImdb;
            return(View(model));
        }
 public TorrentController(TorrentServices torrentServices)
 {
     this.torrentServices = torrentServices;
 }