Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

MapperConfiguration.cs

using AutoMapper;
using Nop.Core.Infrastructure.Mapper;
using Nop.Plugin.Widgets.FacebookPixel.Domain;
using Nop.Plugin.Widgets.FacebookPixel.Models;

namespace Nop.Plugin.Widgets.FacebookPixel.Infrastructure.Mapper;

/// 
/// Represents AutoMapper configuration for plugin models
/// 
public class MapperConfiguration : Profile, IOrderedMapperProfile
{
    #region Ctor

    public MapperConfiguration()
    {
        CreateMap()
            .ForMember(model => model.AvailableStores, options => options.Ignore())
            .ForMember(model => model.CustomEventSearchModel, options => options.Ignore())
            .ForMember(model => model.CustomProperties, options => options.Ignore())
            .ForMember(model => model.HideCustomEventsSearch, options => options.Ignore())
            .ForMember(model => model.HideStoresList, options => options.Ignore())
            .ForMember(model => model.StoreName, options => options.Ignore());
        CreateMap()
            .ForMember(entity => entity.CustomEvents, options => options.Ignore());
    }

    #endregion

    #region Properties

    /// 
    /// Order of this mapper implementation
    /// 
    public int Order => 1;

    #endregion
}