Ejemplo n.º 1
0
        private RoundViewModel SaveRound(RoundViewModel roundView)
        {
            Round round = roundView.ToBaseModel();

            roundBll.SaveRound(round);

            roundBll.FillGames = true;
            round = roundBll.GetRound(round.Id);

            roundView = round.ToViewModel();

            var roundVMHelper = new RoundVMHelper(new RoundViewModel[] { roundView });

            roundVMHelper.FillAvailableTeams();

            return(roundView);
        }