Ejemplo n.º 1
0
        public async Task LoadFinishRegistrationData(FinishRegistrationAccountView viewModel)
        {
            var cathedras = await _cathedraRepository.GetAll() as List <Company>;

            foreach (Company cathedra in cathedras)
            {
                var cathedraViewItem = new CathedraFinishRegistrationAccountViewItem();

                cathedraViewItem.Id           = cathedra.Id;
                cathedraViewItem.CathedraName = cathedra.Name;

                viewModel.Cathedras.Add(cathedraViewItem);
            }
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> FinishRegistration(FinishRegistrationAccountView viewModel)
        {
            await _accountService.LoadFinishRegistrationData(viewModel);

            return(View(viewModel));
        }