public TestService(IUnitOfWork uow) { _repo = uow.GetRepository <TestObj>(); _getEntityListComponent = new GetEntityListComponent(); _addEntityComponent = new AddEntityComponent(); _getEntityByIDComponent = new GetEntityByIDComponent(); _editEntityComponent = new EditEntityComponent(); _editEntityListComponent = new EditEntityListComponent(); _deleteEntityComponent = new DeleteEntityComponent(); }
public WishService(IUnitOfWork uow, ApplicationUser user) { _user = user; _repository = uow.GetRepository <Wish>(); _getEntityListComponent = new GetEntityListComponent(); _addEntityComponent = new AddEntityComponent(); _getEntityByIDComponent = new GetEntityByIDComponent(); _editEntityComponent = new EditEntityComponent(); _editEntityListComponent = new EditEntityListComponent(); _deleteEntityComponent = new DeleteEntityComponent(); }
public AlbumService(IUnitOfWork uow, ApplicationUser user) { _user = user; _repository = uow.GetRepository <Album>(); _tracksRepository = uow.GetRepository <Tracklist>(); _getEntityListComponent = new GetEntityListComponent(); _addEntityComponent = new AddEntityComponent(); _getEntityByIDComponent = new GetEntityByIDComponent(); _editEntityComponent = new EditEntityComponent(); _editEntityListComponent = new EditEntityListComponent(); _deleteEntityComponent = new DeleteEntityComponent(); }