Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

450 B
Raw Blame
using Grand.Mapping;

namespace Grand.Infrastructure.Mapper;

public static class AutoMapperConfig
{
    /// <summary>
    ///     Mapper
    /// </summary>
    public static IMapper Mapper { get; private set; }

    /// <summary>
    ///     Initialize mapper
    /// </summary>
    /// <param name="config">Mapper configuration</param>
    public static void Init(MapperConfiguration config)
    {
        Mapper = config.CreateMapper();
    }
}