Exemplo n.º 1
0
        public async Task <IActionResult> OnPostAsync()
        {
            var tagDto = ObjectMapper.Map <TagEditViewModel, TagUpdateDto>(ViewModel);
            await TagAdminAppService.UpdateAsync(Id, tagDto);

            return(NoContent());
        }
Exemplo n.º 2
0
        public async Task OnGetAsync()
        {
            var definitions = await TagAdminAppService.GetTagDefinitionsAsync();

            TagDefinitions = definitions.Select(s => new SelectListItem(s.DisplayName, s.EntityType)).ToList();
        }
Exemplo n.º 3
0
        public async Task OnGetAsync()
        {
            var dto = await TagAdminAppService.GetAsync(Id);

            ViewModel = ObjectMapper.Map <TagDto, TagEditViewModel>(dto);
        }