While using a generic repository pattern, I have the following function for adding an entity:
public class BaseRepository : IBaseRepository