public ActionResult Create(TeamBetTeamXViewModel model)
        {
            if (ModelState.IsValid)
            {
                var businessObject = new BOTeamBetTeamX();
                Mapper.Map<TeamBetTeamXViewModel, BOTeamBetTeamX>(model, businessObject);

                businessObject.BetTeam = new BOBetTeam(model.BetTeamListID);
                businessObject.Team = new BOTeam(model.TeamListID);

                _teambetteamxService.Save(businessObject);

                return RedirectToAction("Index");
            }
            model.BetTeamList = new SelectList (_betTeamService.GetAll(), SelectLists.DataValueField, SelectLists.DataTextField, SelectLists.UnitializedSelectValue);
            model.TeamList = new SelectList (_teamService.GetAll(), SelectLists.DataValueField, SelectLists.DataTextField, SelectLists.UnitializedSelectValue);

            return View(model);
        }
 public BOTeamBetTeamXComparer(BOTeamBetTeamX.Columns column, BOTeamBetTeamX.SortDirections direction)
 {
     _column = column;
     _direction = direction;
 }
 public void Save(BOTeamBetTeamX teambetteamx)
 {
     _teambetteamxRepository.Save(teambetteamx);
 }