public static skRefund GetRefundObject(int ID) { Stocky.Proxies.AppDataClient DataClient = new Proxies.AppDataClient(); try { DataClient.Open(); skRefund RefundOBJ = DataClient.GetRefundObject(ID).RefundObject; if (RefundOBJ != null) { return(RefundOBJ); } else { throw new Exception("No Refund Found"); } } finally { DataClient.Close(); } }