Beispiel #1
0
        /// <summary>
        /// Obtiene los subsectores existentes dado el identificador del sector.
        /// </summary>
        /// <param name="idSector"></param>
        /// <returns></returns>
        public ResultadoOperacionDto ObtenerSubSectores(int idSector)
        {
            ResultadoOperacionDto resultadoOperacionDto = new ResultadoOperacionDto();

            resultadoOperacionDto.InformacionExtra = SubSectorRepository.ObtenerSubSectoresPorIdSector(idSector);
            resultadoOperacionDto.Resultado        = true;
            return(resultadoOperacionDto);
        }
 public SubSectorController(ApplicationDbContext ctx, SubSectorRepository SectorRepo)
 {
     context        = ctx;
     _SubSectorRepo = SectorRepo;
 }