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)); }
public virtual Task <TenantDto> GetAsync(TenantGetByNameInputDto tenantGetByNameInput) { return(TenantAppService.GetAsync(tenantGetByNameInput)); }