Beispiel #1
0
        // GET: Resume
        public ActionResult Index()
        {
            ViewBag.Degrees  = new SelectList(DegreeRepo.GetAll(), "Id", "Name");
            ViewBag.Genders  = new SelectList(GenderRepo.GetAll(), "Id", "Name");
            ViewBag.Positons = new SelectList(PositionRepo.GetAll(), "Id", "Name");

            return(View());
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            positionList.Items.Clear();
            //Position position = new Position();
            //position.Name = positionNameTxtBox.Text;
            IEnumerable <Position> positions = PositionRepo.GetAll();

            foreach (Position position in positions)
            {
                positionList.Items.Add(position.Name);
            }
        }