/// <summary> /// GetCustomer /// Function to get the customer record related to customer id /// </summary> /// <param name="customerID">Customer ID</param> /// <param name="session">Session object</param> /// <returns>customer row object</returns> public static DAL.CustomerRow GetCustomer(String customerID, ISession session, String VersionNo = "") { CustomerTableAdapter ta = new CustomerTableAdapter(); ta.CurrentConnection = session; List <DAL.CustomerRow> lstCust = ta.GetCustomer(customerID).ToList(); if (lstCust.Count > 0) { return(lstCust[0]); } else { return(null); } }
public DataTable getCustomer() { objCustomer = new CustomerTableAdapter(); return(objCustomer.GetCustomer()); }