// GET: CertificationController/Details/5 public ActionResult Details(int id) { ViewBag.CategorieID = new SelectList(categorieRepository.GetAll(), "CategorieId", "CategorieName"); var certification = certificationRepository.GetById(id); return(View(certification)); }