using AutoMapper;
using PowderCoating.Application.DTOs.Customer;
using PowderCoating.Core.Entities;

namespace PowderCoating.Application.Mappings;

public class PricingTierProfile : Profile
{
    public PricingTierProfile()
    {
        CreateMap<PricingTier, PricingTierDto>()
            .ForMember(dest => dest.CustomerCount, opt => opt.Ignore());

        CreateMap<CreatePricingTierDto, PricingTier>();
        CreateMap<UpdatePricingTierDto, PricingTier>();

        CreateMap<PricingTier, UpdatePricingTierDto>();
    }
}
