public IActionResult GetAllResults() { var fixtures = _wpbService.GetResultsAsDto(); var filteredRequest = new ResultsGroupedRequest { FirstDivision = fixtures.Where(x => x.DivisionCode == "DIV1").ToList(), SecondDivision = fixtures.Where(x => x.DivisionCode == "DIV2").ToList(), ThirdDivision = fixtures.Where(x => x.DivisionCode == "DIV3").ToList() }; return(Ok(filteredRequest)); }