I have a class that have a different Add method than the other classes and therefor cant implement the same interface... Should I split the current interface so it can use it too or should I just create another interface for it?
UPDATE:
public interface IProductRepository<T, T2>
where T : class
where T2 : class
{
void Add(T model, int categoryId);
void Edit(T model, int id);
void Delete(int id);
T2 Get(int id);
}
As you see then the interface above have an Add method which requires a categoryId.
My Category class is the same as above but without the categoryId parameter in the Add method. Should I just create a new interface for the Category class?