예제 #1
0
 public AdminItemsModel(IDataAcces dataAcces)
 {
     this.dataAcces = dataAcces;
     Items          = dataAcces.GetAllItems().OrderBy(i => i.ItemName);
 }
예제 #2
0
 public IndexModel(IDataAcces data)
 {
     Items = data.GetAllItems().ToList();
 }