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));
 }