public virtual async Task <SaasTenantDto> UpdateAsync(Guid id, SaasTenantUpdateDto input)
        {
            var tenant = await TenantRepository.GetAsync(id);

            if (tenant.Name != input.Name)
            {
                await TenantManager.ChangeNameAsync(tenant, input.Name);
            }

            tenant.EditionId = input.EditionId;

            return(ObjectMapper.Map <Tenant, SaasTenantDto>(tenant));
        }
Ejemplo n.º 2
0
 public virtual Task <SaasTenantDto> UpdateAsync(Guid id, SaasTenantUpdateDto input)
 {
     return(this.Service.UpdateAsync(id, input));
 }