Beispiel #1
0
        public IActionResult AddMatch(MatchViewModel viewModel, List <BettingOption> bo)
        {
            viewModel.Match.BettingOptions = bo;
            MatchLogic.AddMatch(viewModel.Match);

            return(RedirectToAction("AddMatch", "Admin"));
        }
 public int AddMacth([FromBody] Match match)
 {
     try
     {
         MatchLogic matchLogic = new MatchLogic();
         matchLogic.AddMatch(match);
     }
     catch (Exception)
     {
         return(match.FirstTeamId);
     }
     return(match.Id);
 }