Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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