public virtual async Task <TenantDto> GetAsync(TenantGetByNameInputDto tenantGetByNameInput)
        {
            var tenant = await TenantRepository.FindByNameAsync(tenantGetByNameInput.Name, false);

            if (tenant == null)
            {
                throw new UserFriendlyException(L["TenantNotFoundByName", tenantGetByNameInput.Name]);
            }
            return(ObjectMapper.Map <Tenant, TenantDto>(tenant));
        }
示例#2
0
 public virtual Task <TenantDto> GetAsync(TenantGetByNameInputDto tenantGetByNameInput)
 {
     return(TenantAppService.GetAsync(tenantGetByNameInput));
 }