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))); }
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")); }
public ActionResult Trainer2() { ViewBag.Trainerlist = new SelectList(TrainerRepo.All(null), "id", "name"); return(PartialView("_Trainer2")); }
public ActionResult AddTrainer() { ViewBag.TrainerList = new SelectList(TrainerRepo.All(), "id", "name"); return(PartialView("_AddTrainer")); }
public ActionResult List() { return(PartialView("_List", TrainerRepo.All())); }
public ActionResult List(string search) { return(PartialView("_List", TrainerRepo.All(search))); }
// GET: Trainer public ActionResult Index(string search) { return(View(TrainerRepo.All(search))); }