annotate Demo/Asp.Net/Web/Controls/CartList.ascx.cs @ 6:11b6da379593
Исправлена странная ошибка при использовании OfType<...>().Where(...)
author |
cin |
date |
Mon, 05 Dec 2016 05:50:52 +0300 |
parents |
f990fcb411a9 |
children |
|
rev |
line source |
0
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.Web.UI;
|
|
4
|
|
5 using PetShop.ObjectModel;
|
|
6
|
|
7 namespace PetShop.Web
|
|
8 {
|
|
9 public partial class CartList : UserControl
|
|
10 {
|
|
11 public void Bind(ICollection<CartItem> cart)
|
|
12 {
|
|
13 if (cart != null)
|
|
14 {
|
|
15 repOrdered.DataSource = cart;
|
|
16 repOrdered.DataBind();
|
|
17 }
|
|
18 }
|
|
19 }
|
|
20 } |