daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public List<Customer> Customers
  2.         {
  3.             get
  4.             {
  5.                 List<Customer> customers = HttpContext.Current.Session["Customers"] as List<Customer>;
  6.                 if (customers == null)
  7.                 {
  8.                     customers = new List<Customer>();
  9.                     HttpContext.Current.Session["Customers"] = customers;
  10.                 }
  11.                 return customers;
  12.             }
  13.             set
  14.             {
  15.                 HttpContext.Current.Session["Customers"] = value;
  16.             }
  17.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top