mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-23 09:48:26 +00:00
16 lines
432 B
C#
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>();
|
|
}
|
|
}
|
|
}
|