Exemplo n.º 1
0
 public ActionResult AddScores([Bind(Include = "MatchTable, CurrentTourId")] AddScoresViewModel viewModel)
 {
     if (!ModelState.IsValid)
     {
         return(AddScores(viewModel.CurrentTourId));                     //not sure
     }
     _matchService.AddScores(_matchService.GetMatchesByTourId(viewModel.CurrentTourId), viewModel.MatchTable.Scorelist);
     return(RedirectToAction("Index"));
 }