update match scores

This commit is contained in:
chsakell
2016-09-30 16:01:17 +03:00
parent 8e6c0efe48
commit b0040ac178
12 changed files with 173 additions and 28 deletions

View File

@@ -7,7 +7,8 @@ namespace LiveGameFeed.Core.Mappings
{
protected override void Configure()
{
Mapper.CreateMap<Match, MatchViewModel>();
Mapper.CreateMap<Match, MatchViewModel>()
.ForMember(m => m.Type, map => map.MapFrom(m => m.Type.ToString()));
Mapper.CreateMap<Feed, FeedViewModel>();
}
}