Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueleresca/59bea93e513b81838ee3a405fadde199 to your computer and use it in GitHub Desktop.
Save samueleresca/59bea93e513b81838ee3a405fadde199 to your computer and use it in GitHub Desktop.
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