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

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

        // //Source->Destination2
        // CreateMap<Source, Destination2>().ForMember(d => d.AnotherValue2, opt =>
        // {
        //     opt.MapFrom(s => s.AnotherValue);
        // });
        public TenantProfile()
        {
            CreateMap<TenantUser, TenantUserDto>();
            CreateMap<TenantUserDto, TenantUser>();
        }
    }
}
