add automapper

This commit is contained in:
chsakell
2016-09-30 10:36:22 +03:00
parent a0cc12f3fb
commit d0690695b6
8 changed files with 71 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
using AutoMapper;
using LiveGameFeed.Models;
namespace LiveGameFeed.Mappings
{
public class DomainToViewModelMappingProfile : Profile
{
protected override void Configure()
{
Mapper.CreateMap<Match, MatchViewModel>();
Mapper.CreateMap<Feed, FeedViewModel>();
}
}
}