public static CustomerRelationship GetCustomerRelationship(LoginUser loginUser, int customerRelationshipID) { CustomerRelationships customerRelationships = new CustomerRelationships(loginUser); customerRelationships.LoadByCustomerRelationshipID(customerRelationshipID); if (customerRelationships.IsEmpty) { return(null); } else { return(customerRelationships[0]); } }
public CustomerRelationship(DataRow row, CustomerRelationships customerRelationships) : base(row, customerRelationships) { _customerRelationships = customerRelationships; }