fix feeds order

This commit is contained in:
chsakell
2016-10-05 16:19:02 +03:00
parent 0d8e383a22
commit 09ef60ddf4
3 changed files with 5 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ namespace LiveGameFeed.Controllers
[HttpGet]
public IEnumerable<MatchViewModel> Get()
{
IEnumerable<Match> _matches = _matchRepository.GetAll();
IEnumerable<Match> _matches = _matchRepository.AllIncluding(m => m.Feeds);
IEnumerable<MatchViewModel> _matchesVM = Mapper.Map<IEnumerable<Match>, IEnumerable<MatchViewModel>>(_matches);
return _matchesVM;