public IActionResult Manage() { var existingShards = _shardManager.GetAllShards(); var tenants = _dbContext.Areas.Select(t => new AreaViewModel { Id = t.Id, Name = t.Name }).ToList(); var vm = new ManageAreasViewModel { Areas = tenants, Shards = existingShards }; return(View(vm)); }
public IActionResult Index() { IEnumerable <string> existingShards = _shardManager.GetAllShards(); return(View(existingShards)); }