public async Task <ActionResult <IList <List> > > Get(Guid id) { var tenant = (await _tenantService.GetTenantFromHostAsync()); if (tenant != null) { Console.WriteLine($"getting list for {tenant.Id} : {tenant.Name}"); using (var context = _tenantService.CreateContext(tenant)) { var listService = new ListService(context); return(Ok(await listService.GetListAsync(id))); } } return(BadRequest("Tenant doesn't exist")); }