public async Task <int> CloneTenant(CloneTenantDto dto) { var tenantId = await TenantDbManager.CloneTenantAsync(dto.TenantToCloneId, dto.CloneName); return(tenantId); }
public async Task <ActionResult <CloneTenantDto> > CloneTenant([FromBody] CloneTenantDto dto) { var result = await TenantManager.CloneTenant(dto); return(Ok(result)); }