Beispiel #1
0
        public async Task <ActionResult <List <ConfigVM> > > GetConfigs()
        {
            var appId = _appBasicAuthService.GetAppIdSecret(Request).Item1;

            var configs = await _configService.GetByAppIdAsync(appId);

            return(configs.Select(config => new ConfigVM()
            {
                Id = config.Id,
                AppId = config.AppId,
                Group = config.Group,
                Key = config.Key,
                Value = config.Value,
                Status = config.Status,
                Description = config.Description,
                OnlineStatus = config.OnlineStatus
            }).ToList());
        }