Skip to content

Instantly share code, notes, and snippets.

@evgomes
Created January 28, 2019 13:49
Show Gist options
  • Save evgomes/9030a61943753475cd62b2bb421061fa to your computer and use it in GitHub Desktop.
Save evgomes/9030a61943753475cd62b2bb421061fa to your computer and use it in GitHub Desktop.
ModelToResourceProfile, from Supermarket API
using AutoMapper;
using Supermarket.API.Domain.Models;
using Supermarket.API.Resources;
namespace Supermarket.API.Mapping
{
public class ModelToResourceProfile : Profile
{
public ModelToResourceProfile()
{
CreateMap<Category, CategoryResource>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment