using System;
using Aurora.Core.Domain.Entities;
using Aurora.Core.IService.Dto;
using AutoMapper;

namespace Aurora.Core.Service.AutomapperProfiles
{
    public class CategoryProfile : Profile
    {
        //Source->Destination
        // CreateMap<Source, Destination>();

        // //Source->Destination2
        // CreateMap<Source, Destination2>().ForMember(d => d.AnotherValue2, opt =>
        // {
        //     opt.MapFrom(s => s.AnotherValue);
        // });
        public CategoryProfile()
        {
            CreateMap<Category, CategoryDto>();
            CreateMap<CategoryDto, Category>();
        }
    }
}
