public IActionResult Get() { string category = (string)RouteData.Values["Category"]; CategoryCollection categoryCollection = new CategoryCollection(); var Collection = new ArticleViewModelCollection(); if (categoryCollection.AvailibleCategories.ContainsKey(category)) { JSONData jSONData = new JSONData(); jSONData.GetAll(categoryCollection); var single = jSONData.GetCategory(category); Collection.FillWithCategory(category, single); } return(View("Table", Collection)); }