Пример #1
0
        public static ListCollection <Role> GetRoles(Query query)
        {
            IList <Role>          roles           = AdministracionMapper.GetRoles(query);
            ListCollection <Role> rolesCollection = new ListCollection <Role>();

            rolesCollection.AddRange(roles);
            rolesCollection.Total = AdministracionMapper.GetTotalRoles(query);

            return(rolesCollection);
        }
Пример #2
0
        public static ListCollection <Role> GetRoles()
        {
            Query query = new Query();

            query.Paginate = false;
            query.Order    = new FieldOrder("Role.Nombre", "ASC");
            IList <Role>          roles           = AdministracionMapper.GetRoles(query);
            ListCollection <Role> rolesCollection = new ListCollection <Role>();

            rolesCollection.AddRange(roles);
            rolesCollection.Total = AdministracionMapper.GetTotalRoles(query);

            return(rolesCollection);
        }