Exemplo n.º 1
0
        public ActionResult ImportMatchDetails(ImportMatchDetailsViewModel importMatchDetailsViewModel)
        {
            var soccerbase = new Soccerbase(DbProvider, User);

            soccerbase.LogFilePath = this.LogFilePath;

            soccerbase.Import(importMatchDetailsViewModel.StartDate, importMatchDetailsViewModel.EndDate);

            return(RedirectToAction("ImportMatchDetails", new { sd = importMatchDetailsViewModel.StartDate.ToUrlString(), ed = importMatchDetailsViewModel.EndDate.ToUrlString() }));
        }
Exemplo n.º 2
0
        public ActionResult ImportMatchDetails(DateTime?sd, DateTime?ed)
        {
            var importMatchDetailsViewModel = new ImportMatchDetailsViewModel()
            {
                StartDate = sd ?? DateTime.Today.AddDays(-1),
                EndDate   = ed ?? DateTime.Today.AddDays(-1)
            };

            return(View(importMatchDetailsViewModel));
        }