I'd like to put in a base class a method in order not to repeat it in the inherited classes. There are interfaces for the base class and the inherited classes. Once I create a inherited class object I cannot use the base class method that I want to use. ¿What's wrong?

Thanks in advance.

```
public interface IRepository
{
    string GetError(string LogNumber);
}

public class Repository : IRepository
{
    public Repository()
    {
    }

    public string GetError(string LogNumber)
    {
        return "The error is " + LogNumber;
    }
}

public interface ICustomerRepository
{
    // READ
    List<Customer> ReadAll();

}

public class CustomerRepository : Repository, ICustomerRepository
{
    public CustomerRepository() : base()
    {
    }

    public List<Customer> ReadAll()
    {
        return fooFunction();
    }
}

CustomerRepository myRepository = new CustomerRepository()
myRepository.

```