示例#1
0
        private void LoadViewBag(Board board)
        {
            ViewBag.BoardStatusId =
                new SelectList(
                    CombosHelper.GetBoradStatus(db),
                    "BoardStatusId",
                    "Name",
                    board == null ?
                    0 :
                    board.BoardStatusId);

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