Beispiel #1
0
        public ActionResult ImportTournament(HttpPostedFileBase fileUpload)
        {
            if (fileUpload == null)
            {
                return(View("Error"));
            }

            var xmlWorker = new XmlCreator(DataContext);

            xmlWorker.ImportTournaments(fileUpload);
            return(RedirectToAction("Index", "Home"));
        }