// var data = Mapper.Map<Source, Destination>(dest, opt => opt.ConstructServicesUsing(type => Request.GetDependencyScope().GetService(typeof(YourServiceTypeToConstruct)))); public EfCrudService(StoreManagementEfContext context, IMapper mapper) { _context = context; this._mapper = mapper; }
public StoreService(StoreManagementEfContext context, IMapper mapper) { _context = context; _mapper = mapper; }