public Library GetContentLibrary(string libraryName, string ownerId, BXCModelEntities context = null) { context = context ?? new BXCModelEntities(); var libraryRepo = new LibraryRepository(context); return libraryRepo.GetByNameAndOwner(libraryName, ownerId); }