Exemple #1
0
        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));
        }
Exemple #2
0
        public IActionResult Index()
        {
            IEnumerable <string> existingShards = _shardManager.GetAllShards();

            return(View(existingShards));
        }