Ejemplo n.º 1
0
        private static void SearchFather(PRO_RESOURCES sheet, IEnumerable <PRO_RESOURCES> allResourcesEntities, ref IEnumerable <PRO_RESOURCES> bag)
        {
            PRO_RESOURCES father = null;

            if (sheet.NIDFATHER != 0)
            {
                father = allResourcesEntities.Where(x => x.NIDRESOURCE == sheet.NIDFATHER).First();
                bag    = bag.Union(new List <PRO_RESOURCES> {
                    father
                }, new ProductComparer());
                SearchFather(father, allResourcesEntities, ref bag);
            }
            return;
        }
Ejemplo n.º 2
0
        public async Task <PRO_RESOURCES> GetMenu(int perfil)
        {
            PRO_RESOURCES oResources = new PRO_RESOURCES();

            return(oResources);
        }