public Response <List <MenuResult> > GetMenus() { var res = new Response <List <MenuResult> >(); res.Result = menuDao.GetMenus(); return(res); }
/// <summary> /// Gets the menus. /// </summary> /// <returns>The menus.</returns> /// <param name="tenantId">Tenant identifier.</param> /// <param name="operatorId">Operator identifier.</param> public IList <Menu> Search(int tenantId, int operatorId, PagingObject paging, List <SortedField> sortedFields) { return(_menuDao.GetMenus(tenantId, operatorId, paging, sortedFields).Select(menu => menu.ToBusinessObject()).ToList()); }