public async Task <IEnumerable <ExtendedTagModel> > GetMostUsedTags(int count)
        {
            IEnumerable <TagModel> tags = await _tagsProvider.GetMostUsedTags(count);

            int usageCountSum = tags.Sum(t => t.UsageCount);

            return(tags.Select(t => new ExtendedTagModel(t.Name, t.UsageCount, Math.Round(t.UsageCount / (double)usageCountSum * 100, 2))));
        }
        public async Task <IActionResult> Index()
        {
            IEnumerable <ExtendedTagModel> tags = await _tagsProvider.GetMostUsedTags(_tagCount.TagCount);

            return(View(tags.Select(t => new TagViewModel(t.Name, t.UsageCount, t.UsagePercentage))));
        }