mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-23 09:48:26 +00:00
add automapper
This commit is contained in:
14
Mappings/DomainToViewModelMappingProfile.cs
Normal file
14
Mappings/DomainToViewModelMappingProfile.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user