Beispiel #1
0
        protected override async Task OnAdding(TenantDto input, Tenant entity)
        {
            await base.OnAdding(input, entity);

            entity.Super_Id  = Tenant_Id;
            entity.Tenant_Id = IdGenerate.NetId();
        }
Beispiel #2
0
        public async Task UpdateCurrentAsync(TenantDto tenantDto)
        {
            var id = await tenantRepository.Where(v => v.Tenant_Id == Tenant_Id).Select(v => v.Id).FirstOrDefaultAsync();

            tenantDto.Id = id;
            await UpdateAsync(tenantDto);
        }