private tmdlcustomer GetSingleCustomer(string _customerId) { wsMDL.IwsMDLClient client = new wsMDL.IwsMDLClient(); tmdlcustomer result = null; try { baseForm.SetCursor(); List<MESParameterInfo> lstParameters = new List<MESParameterInfo>(); lstParameters.Add(new MESParameterInfo() { ParamName = "customerid", ParamValue = _customerId, ParamType = "string" }); result = client.GetSingleCustomer(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>()); } catch (Exception ex) { throw ex; } finally { baseForm.ResetCursor(); baseForm.CloseWCF(client); } return result; }