示例#1
0
 // GET: Secteurs
 public async Task <IActionResult> Index()
 {
     return(View(await _repo.GetAll()));
 }
 // GET: Etageres/Create
 public async Task <IActionResult> Create()
 {
     ViewData["SecteurId"] = new SelectList(await _repoSecteur.GetAll(), "Id", "Name");
     return(View());
 }