using AutoMapper; using DealerSelection.WebApi.Models; namespace DealerSelection.WebApi; public static class MapperConfig { private static MapperConfiguration Config { get; set; } public static void Register() { Config = new MapperConfiguration( cfg => { cfg.CreateMap(); cfg.CreateMap(); cfg.CreateMap(); }); } public static Response MapResponse(Api.Models.Response from) { return Config.CreateMapper().Map(from); } public static MulesoftResponse MapMulesoftResponse(Api.Models.MulesoftResponse from) { return Config.CreateMapper().Map(from); } public static Api.Models.CustomerDealerInfoRequest MapCustomerDealerInfoRequest(CustomerDealerInfoRequest from) { return Config.CreateMapper().Map(from); } }