Exemplo n.º 1
0
        public async Task <IActionResult> Create()
        {
            DealViewModel viewModel = new DealViewModel()
            {
                Contacts = await _ploomesApiRepo.FindAllContactsAsync()
            };

            return(View(viewModel));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Index()
        {
            List <Contact> contacts = await _ploomesApiRepo.FindAllContactsAsync();

            return(View(contacts));
        }