Ejemplo n.º 1
0
 public IEnumerable <Grocery> GetOrderedList(string filter)
 {
     if (filter.Contains("Category"))
     {
         filter = filter.Replace("Category", "Category.Name");
     }
     dao = new GroceryDao();
     return(dao.GetAll().OrderBy(filter));
 }
Ejemplo n.º 2
0
 public IEnumerable <Grocery> GetAllInBasket()
 {
     dao = new GroceryDao();
     return(dao.GetAll().Where(x => x.InBasket));
 }
Ejemplo n.º 3
0
 public IEnumerable <Grocery> GetAll()
 {
     dao = new GroceryDao();
     return(dao.GetAll());
 }