Files
aspnet-core-signalr-angular/Core/Mappings/DomainToViewModelMappingProfile.cs
2016-09-30 16:01:17 +03:00

16 lines
432 B
C#

using AutoMapper;
using LiveGameFeed.Models;
namespace LiveGameFeed.Core.Mappings
{
public class DomainToViewModelMappingProfile : Profile
{
protected override void Configure()
{
Mapper.CreateMap<Match, MatchViewModel>()
.ForMember(m => m.Type, map => map.MapFrom(m => m.Type.ToString()));
Mapper.CreateMap<Feed, FeedViewModel>();
}
}
}