Пример #1
0
        public async Task <TenantInfo> FindAsync(string name)
        {
            using (_currentTenant.Clear()) //TODO: No need this if we can implement to define host side (or tenant-independent) entities!
            {
                var tenant = await _tenantRepository.FindByNameIncludeDetailsAsync(name);

                if (tenant == null)
                {
                    return(null);
                }

                return(_objectMapper.Map <Tenant, TenantInfo>(tenant));
            }
        }