// // GET: /Account/Create public ActionResult Create() { var sectors = _sectorService.ListIndustrialSectors(); var viewModel = new AccountViewModel { Sectors = new SelectList(sectors, "Id", "Sector") }; return(View(viewModel)); }
// // GET: /Sector/ public ActionResult Index() { //we list all sectors from db, and pass them to the view return(View(_sectorService.ListIndustrialSectors())); }