Changed IRepository from TEntity to TEntity,TKey