public async Task <IActionResult> OnPostAsync() { var tagDto = ObjectMapper.Map <TagEditViewModel, TagUpdateDto>(ViewModel); await TagAdminAppService.UpdateAsync(Id, tagDto); return(NoContent()); }
public async Task OnGetAsync() { var definitions = await TagAdminAppService.GetTagDefinitionsAsync(); TagDefinitions = definitions.Select(s => new SelectListItem(s.DisplayName, s.EntityType)).ToList(); }
public async Task OnGetAsync() { var dto = await TagAdminAppService.GetAsync(Id); ViewModel = ObjectMapper.Map <TagDto, TagEditViewModel>(dto); }