예제 #1
0
        //
        // GET: /Account/Create

        public ActionResult Create()
        {
            var sectors   = _sectorService.ListIndustrialSectors();
            var viewModel = new AccountViewModel
            {
                Sectors = new SelectList(sectors, "Id", "Sector")
            };

            return(View(viewModel));
        }
예제 #2
0
        //
        // GET: /Sector/

        public ActionResult Index()
        {
            //we list all sectors from db, and pass them to the view
            return(View(_sectorService.ListIndustrialSectors()));
        }