/// <summary> /// Get first cached Repository Item from provided Repository Item Type (if list is empty then null will be returned) /// </summary> /// <typeparam name="T">Repository Item Type</typeparam> /// <returns></returns> public dynamic GetFirstRepositoryItem <T>() { SolutionRepositoryItemInfo <T> SRII = GetSolutionRepositoryItemInfo <T>(); if (SRII.GetAllItemsCache().Count > 0) { return(SRII.GetAllItemsCache()[0]); } else { return(null); } }
/// <summary> /// Get list of All cached Repository Items from provided Repository Item Type /// </summary> /// <typeparam name="T">Repository Item Type</typeparam> /// <returns></returns> public ObservableList <T> GetAllRepositoryItems <T>() { SolutionRepositoryItemInfo <T> SRII = GetSolutionRepositoryItemInfo <T>(); return(SRII.GetAllItemsCache()); }