public IEnumerable <BarChartViewModel> GetBarChartData(int year) { var stats = this.Statistics.Find(s => s.Year == year).ToList(); ICollection <BarChartViewModel> models = new List <BarChartViewModel>(); foreach (var stat in stats) { BarChartViewModel model = new BarChartViewModel { HitsCount = stat.HitsCount, SubscribesCount = stat.SubscribesCount, Month = LanguageTranslator.TranslateNumBgMonth(stat.Month) }; models.Add(model); } return(models); }