public CarsController(IMapper mapper, RallyeDbContext context, ICarRepository repository, IUnitOfWork unitOfWork) { this.unitOfWork = unitOfWork; this.repository = repository; this.context = context; this.mapper = mapper; }
public RacesController(RallyeDbContext context, IMapper mapper) { this.mapper = mapper; this.context = context; }