public virtual async Task <TenantDto> UpdateAsync(Guid id, TenantUpdateDto input) { return(await RequestAsync <TenantDto>(nameof(UpdateAsync), new ClientProxyRequestTypeValue { { typeof(Guid), id }, { typeof(TenantUpdateDto), input } })); }
public async Task <TenantDto> UpdateAsync(Guid id, TenantUpdateDto input) { var tenant = await _tenantRepository.GetAsync(id); await _tenantManager.ChangeNameAsync(tenant, input.Name); await _tenantRepository.UpdateAsync(tenant); return(ObjectMapper.Map <Tenant, TenantDto>(tenant)); }
public virtual async Task <TenantDto> UpdateAsync(Guid id, TenantUpdateDto input) { var tenant = await TenantRepository.GetAsync(id); await TenantManager.ChangeNameAsync(tenant, input.Name); input.MapExtraPropertiesTo(tenant); await TenantRepository.UpdateAsync(tenant); return(ObjectMapper.Map <Tenant, TenantDto> (tenant)); }
public virtual async Task <TenantDto> UpdateAsync(Guid id, TenantUpdateDto input) { var tenant = await TenantRepository.GetAsync(id, false); var updateEventData = new UpdateEventData { Id = tenant.Id, OriginName = tenant.Name, Name = input.Name }; await TenantManager.ChangeNameAsync(tenant, input.Name); input.MapExtraPropertiesTo(tenant); await TenantRepository.UpdateAsync(tenant); await EventBus.PublishAsync(updateEventData); return(ObjectMapper.Map <Tenant, TenantDto>(tenant)); }
public virtual Task <TenantDto> UpdateAsync(Guid id, TenantUpdateDto input) { return(TenantAppService.UpdateAsync(id, input)); }
public Task <TenantDto> UpdateAsync(Guid id, TenantUpdateDto input) { return(_service.UpdateAsync(id, input)); }
public Task <TenantDto> UpdateAsync(string id, TenantUpdateDto input) { return(_tenantAppService.UpdateAsync(id.ToGuid(), input)); }