public async Task <TagDto> UpdateAsync(Guid id, TagUpdateDto input) { var tag = await TagManager.UpdateAsync( id, input.Name); await Repository.UpdateAsync(tag); return(ObjectMapper.Map <Tag, TagDto>(tag)); }
public async Task <TagDto> UpdateAsync(Guid id, TagUpdateDto input) { var tag = await TagManager.UpdateAsync( id, input.Name); tag.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp); await Repository.UpdateAsync(tag); return(ObjectMapper.Map <Tag, TagDto>(tag)); }
public Task <TagDto> UpdateAsync(Guid id, [FromBody] TagUpdateDto input) { return(TagAdminAppService.UpdateAsync(id, input)); }