Exemple #1
0
 public ActionResult Update(int id)
 {
     ViewBag.Technology   = new SelectList(TechnologyRepo.All(null), "id", "name");
     ViewBag.Trainer      = new SelectList(TrainerRepo.All(null), "id", "name");
     ViewBag.BootcampType = new SelectList(BootcampTypeRepo.All(), "id", "name");
     ViewBag.Room         = new SelectList(RoomRepo.All(), "id", "name");
     return(PartialView("_Update", BatchRepo.Get(id)));
 }
Exemple #2
0
 public ActionResult Create()
 {
     ViewBag.Technology   = new SelectList(TechnologyRepo.All(null), "id", "name");
     ViewBag.Trainer      = new SelectList(TrainerRepo.All(null), "id", "name");
     ViewBag.BootcampType = new SelectList(BootcampTypeRepo.All(), "id", "name");
     ViewBag.Room         = new SelectList(RoomRepo.All(), "id", "name");
     return(PartialView("_Create"));
 }
Exemple #3
0
 public ActionResult Trainer2()
 {
     ViewBag.Trainerlist = new SelectList(TrainerRepo.All(null), "id", "name");
     return(PartialView("_Trainer2"));
 }
Exemple #4
0
 public ActionResult AddTrainer()
 {
     ViewBag.TrainerList = new SelectList(TrainerRepo.All(), "id", "name");
     return(PartialView("_AddTrainer"));
 }
 public ActionResult List()
 {
     return(PartialView("_List", TrainerRepo.All()));
 }
Exemple #6
0
 public ActionResult List(string search)
 {
     return(PartialView("_List", TrainerRepo.All(search)));
 }
Exemple #7
0
 // GET: Trainer
 public ActionResult Index(string search)
 {
     return(View(TrainerRepo.All(search)));
 }