public ActionResult <List <Match> > Get() { var all_matches = _matchService.Get(); foreach (Match match in all_matches) { var tickets = _ticketsService.GetAvailableByMatchId(match.Id); /*if(!tickets.Any()) * { * all_matches.Remove(match); * } */ match.ticketCount = tickets.Count; } return(all_matches); }