Guest User

Untitled

a guest
Jul 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. private Transaver.TOL.RFP.RFPCompanyProfile ResolveCompanyProfile()
  2. {
  3. var rfpCompanyProfile = Session.RFPCompanyProfile;
  4.  
  5. if (rfpCompanyProfile == null)
  6. {
  7. if (Session.RFP == null)
  8. Session.RFP = new Transaver.TOL.RFP.RFP(Session.DatabaseRFP);
  9. rfpCompanyProfile = new Transaver.TOL.RFP.RFPCompanyProfile(Session.RFP, Session.DatabaseRFP);
  10. }
  11. return rfpCompanyProfile;
  12. }
  13.  
  14.  
  15. private Transaver.TOL.RFP.RFPCompanyProfile ResolveCompanyProfile(Transaver.TOL.RFP.RFP rfp, Transaver.TOL.CompanyLocation.CompanyLocation companyLocation)
  16. {
  17. if (Session.RFPCompanyProfile == null)
  18. {
  19. Session.RFPCompanyProfile = GetCompanyProfile(ref rfp, companyLocation);
  20. }
  21. else
  22. {
  23. if (Session.RFPCompanyProfile.RFPID != rfp.ID)
  24. Session.RFPCompanyProfile = GetCompanyProfile(ref rfp, companyLocation);
  25. }
  26. return Session.RFPCompanyProfile;
  27. }
Add Comment
Please, Sign In to add comment