Beispiel #1
0
        public ActionResult Create()
        {
            var TrainerList = TrainerRepo.GetAll();

            ViewBag.Trainers = new SelectList(TrainerList, "Id", "Name");
            return(View());
        }