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