public ActionResult GetCategory([ModelBinder(typeof(QueryModelBinder))] Query query) { return(Ok(categoryDAO.GetAll(query))); }
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();