Created
March 5, 2017 14:06
-
-
Save samueleresca/59bea93e513b81838ee3a405fadde199 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AutoMapper; | |
using Blog.Turnmeup.DL.Models; | |
using Blog.Turnmeup.Models; | |
namespace Blog.Turnmeup.API.Infrastructure | |
{ | |
public class MappingProfile : Profile | |
{ | |
public MappingProfile() | |
{ | |
// Add as many of these lines as you need to map your objects | |
CreateMap<Course, CourseResponseModel>(); | |
CreateMap<CourseResponseModel, Course>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment