예제 #1
0
        public virtual async Task UpdateAsync(UpdateMapTenantDto input)
        {
            var mapTenant = await MapTenantRepository.GetAsync(input.Id, true);

            if (mapTenant == null)
            {
                throw new AbpException($"Could not find MapTenant by id :{input.Id}.");
            }

            await CheckMapTenantAsync(input.Code, mapTenant.Id);

            mapTenant.Update(input.Code, input.TenantId, input.MapCode);
        }
예제 #2
0
 public async Task UpdateAsync(Guid id, UpdateMapTenantDto input)
 {
     await _mapTenantAppService.UpdateAsync(id, input);
 }
예제 #3
0
 public virtual async Task UpdateAsync(Guid id, UpdateMapTenantDto input)
 {
     await MapTenantManager.UpdateAsync(id, input.Code, input.TenantId, input.MapCode);
 }
예제 #4
0
 public async Task UpdateAsync([FromBody] UpdateMapTenantDto input)
 {
     await _mapTenantAppService.UpdateAsync(input);
 }