Exemple #1
0
 public ActionResult GetCategory([ModelBinder(typeof(QueryModelBinder))] Query query)
 {
     return(Ok(categoryDAO.GetAll(query)));
 }
Exemple #2
0
 public List <CATEGORY> GetAll(int PageSize, int PageIndex, out int TotalRecords, string OrderExp, Util.SortDirection SortDirection)
 {
     return(_categoryDAO.GetAll(PageSize, PageIndex, out TotalRecords, OrderExp, SortDirection));
 }
 public static IEnumerable <Category> GetAll() => categoryDAO.GetAll();