Exemplo n.º 1
0
        public async Task <ActionResult> Edit(int id)
        {
            var dto = await _ClientAppService.Get(id);

            var gendersSL     = (await _LookupAppService.GetGenderComboboxItems()).Items.Select(s => s.ToSelectListItem()).ToList();
            var clientTypesSL = (await _LookupAppService.GetClientTypeComboboxItems()).Items.Select(s => s.ToSelectListItem()).ToList();
            var model         = ObjectMapper.Map(dto, new UpdateViewModel(gendersSL, clientTypesSL));

            return(View(model));
        }