public async Task <IEnumerable <(string Name, int Id)> > GetBits() { var bits = await _repo.GetAllAsync(); IEnumerable <(string Name, int Id)> fbitEnums = bits.Select(x => (x.Name, x.Id)); return(fbitEnums); }
private async Task <int> PrintBits() { var bits = await _repo.GetAllAsync(); var bitsDataTable = GetDataTable(bits.ToList()); _consoleTable.Print(bitsDataTable); return(0); }
/// <summary> /// Public constructor /// </summary> /// <param name="repo">Object used to read the Feature Bits</param> public FeatureBitEvaluator(IFeatureBitsRepo repo) { Definitions = repo.GetAllAsync().GetAwaiter().GetResult().ToList(); }