Ejemplo n.º 1
0
        private void LoadViewBag(Prediction prediction)
        {
            ViewBag.BoardId =
                new SelectList(
                    CombosHelper.GetBorads(db),
                    "BoardId",
                    "ImagePath",
                    prediction == null ?
                    0 :
                    prediction.BoardId);

            ViewBag.MatchId =
                new SelectList(
                    CombosHelper.GetMatchs(db),
                    "MatchId",
                    "MatchId",
                    prediction == null ?
                    0 :
                    prediction.MatchId);

            ViewBag.UserId =
                new SelectList(
                    CombosHelper.GetUsers(db),
                    "UserId",
                    "FirstName",
                    prediction == null ?
                    0 :
                    prediction.UserId);
        }