static void Main(string[] args) { EasyThingGenerator generator = new EasyThingGenerator(); generator.PopulateManagerFromExcelUsingDb("C:\\easyloto.xlsx"); //var ordernede = Manager.Instance.LastTenResults.OrderBy(x => x.Key); var howmany = Manager.Instance.HowMany.OrderBy(x => x.Value); var abc = Manager.Instance.HowMany.OrderBy(x => x.Key); }
private IEnumerable<ResultViewModel> GenerateResults() { EasyThingGenerator generator = new EasyThingGenerator(); generator.PopulateManagerFromExcelUsingDb("C:\\easyloto.xlsx"); var orderedHowManyResults = Manager.Instance.HowMany.OrderBy(x => x.Value); foreach (var result in orderedHowManyResults) { yield return new ResultViewModel { Number = result.Key, Quantity = result.Value }; } }