public object GetAllAsQueryable(Type type) { var repository = Container.Resolve(typeof(IRepository<>).MakeGenericType(type)); return repository.GetType().GetProperty("All").GetValue(repository, null); }