public List <skStock> GetOrphanedStockList(TransactionType TransactionType) { Stocky.Proxies.AppDataClient DataClient = new Proxies.AppDataClient(); try { DataClient.Open(); List <skStock> ReturnList = DataClient.GetOrphanedStockList(TransactionType).StockList; if (ReturnList.Count != 0) { return(ReturnList); } else { throw new Exception("Result has no records!"); } } finally { DataClient.Close(); } }