1. Create class which will inherit from BaseEntity.
You have to inherit from BaseEntity if you want to use your table in repository.
2. Create example interface
3. Implement it
4. Register it (line 19 is for registring this service)
That's it !
You have working service.
How to override method in other service?
In this example we will override DeleteProduct method in IProductService.
At the end you have to register this service (Line 20).
Now when you will try to delete any product from store, exception will be thrown.