public async Task <IActionResult> Create()
        {
            var departaments = await _departamentService.FindAllAsync();

            var viewModel = new SellerFormViewModel {
                Departaments = departaments
            };

            return(View(viewModel));
        }
        public async Task <IActionResult> Create()
        {
            //Busca do banco de dados todos os departamentos
            var departaments = await _departamentService.FindAllAsync();

            var viewModel = new SellerFormViewModel {
                Departaments = departaments
            };

            return(View(viewModel));
        }
예제 #3
0
        public async Task <IActionResult> Index()
        {
            var list = await _departamentService.FindAllAsync();

            return(View(list));
        }