public UnitOfWork(UsedVehiclePartsContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public Repository(UsedVehiclePartsContext context, IMapper mapper) { _mapper = mapper; _dbSet = context.Set <TEntity>(); }