Пример #1
0
 public ActionResult AddTorrent(AddTorrentViewModel model, HttpPostedFileBase image, HttpPostedFileBase torrentFile)
 {
     if (model.TorrentType != null)
     {
         model.ListTypes = torrentManager.GetListTypes();
         return(View(model));
     }
     torrentManager.AddTorrent(model.Torrent, image, torrentFile);
     return(RedirectToAction("AddTorrent", "Torrent"));
 }