Example #1
0
 public void AddToCart(Lot lot, string userName)
 {
     var user = Session.Query<User>().First(u => u.Name == userName);
     var cartItem = new CartItem
     {
         User = user,
         Lot = lot,
         DateTime = DateTime.Now
     };
     Session.Save(cartItem);
     Session.Flush();
 }
Example #2
0
 public void Update(Lot lot)
 {
     Session.Update(lot);
     Session.Flush();
 }