Add logic for Application Service and Repository