Example #1
0
        public IActionResult AddBetType()
        {
            AddBetTypeViewModel viewModel = new AddBetTypeViewModel();

            viewModel.BetTypeIds = MatchLogic.GetAllBetTypeIds();

            return(View(viewModel));
        }
Example #2
0
 public IActionResult AddBetType(AddBetTypeViewModel viewModel)
 {
     MatchLogic.AddBetType(viewModel.BetType);
     return(RedirectToAction("Home", "Home"));
 }