public void Initialize() { try { Mapper.Configuration.AssertConfigurationIsValid(); } catch (System.Exception) { Mapper.Initialize(config => { config.AddProfile<RCE.Infrastructure.MapperProfile>(); }); ; } _userToProductRepository = new UserToProductRepository(); }
public BaseUserToProductBusinessLogic(IUserToProductQueryService userToProductQueryService, IUserToProductRepository userToProductRepository) { _userToProductRepository = userToProductRepository; _userToProductQueryService = userToProductQueryService; }