Service working with IOC and persistence layer