public SA_APPLICATION2COMPANY SholdToX() { int EnumVal = (int)companyType.SholdTo; SA_APPLICATION2COMPANY _SA_APPLICATION2COMPANY = this.SA_APPLICATION2COMPANY.FirstOrDefault(p => p.CompanyType == EnumVal); return(_SA_APPLICATION2COMPANY); }
public SA_APPLICATION2COMPANY BillToX() { if (IsHaveBillToX()) { int EnumVal = (int)companyType.BillTo; SA_APPLICATION2COMPANY _SA_APPLICATION2COMPANY = this.SA_APPLICATION2COMPANY.FirstOrDefault(p => p.CompanyType == EnumVal); return(_SA_APPLICATION2COMPANY); } return(null); }