I have a method which is fetching records from database based on their status. 

Now I want to use the same method for fetching records by the id 

Like:

```
public class A
{
    public List<Foo> GetDetails(bool IsActive)
    {
        return list; 
    }
}

public class B
{
    public List<Foo> GetDetails(int Id)
    {
        //Do something  
        return list; 
    }
}

```

So I don't want to write the same method again in class B.. I want to use the method of Class A here...