public VehiclesController(KartzMaxDbContext context, IMapper mapper, IVehicleRepository repository, IUnitOfWork unitOfWork) { this.unitOfWork = unitOfWork; this.repository = repository; this.mapper = mapper; this.context = context; }
public FeaturesController(KartzMaxDbContext context) { this.context = context; }
// Inject KartzMaxDbContext // Inject Automapper public MakesController(KartzMaxDbContext context, IMapper mapper) { this.mapper = mapper; this.context = context; }