public ActionResult Index()
        {
            var roles         = _rolRepository.GetAll().ToList();
            var departamentos = _departamentoRepository.GetAll().ToList();

            return(View());
        }
Example #2
0
        public IEnumerable <DepartamentoDto> GetDepartamentos()
        {
            var departamentos    = _departamentoRepository.GetAll();
            var departamentoDtos = ConvertToDepartamentoDto(departamentos);

            return(departamentoDtos);
        }
Example #3
0
 public IEnumerable <Departamento> GetAll()
 {
     return(_departamentoRepository.GetAll());
 }
Example #4
0
        public ActionResult ListarDepartamentos()
        {
            var model = _departamentoRepository.GetAll().ToList();

            return(View(model));
        }
        public async Task <IEnumerable <DepartamentoDTO> > GetAllDepartamentos()
        {
            var departamento = _mapper.Map <IEnumerable <DepartamentoDTO> >(await _departamentoRepository.GetAll());

            return(departamento);
        }
Example #6
0
 public IList <TbPrDepartamento> GetAll()
 {
     return(reposistory.GetAll());;
 }