예제 #1
0
        public IActionResult Get()
        {
            var emms    = empleadoRepository.GetAll();
            var emmsdto = _mapper.Map <List <EmpleadoDto> >(emms);

            return(Ok(emmsdto));
        }
        public IActionResult Get()
        {
            var Emps     = _EmpleadoRepository.GetAll();
            var EmpsDtos = _mapper.Map <List <EmpleadoResponseDto> >(Emps);

            return(Ok(EmpsDtos));
        }
예제 #3
0
 public IEnumerable <Empleado> Get()
 {
     return(empleadoRepository.GetAll());
 }
예제 #4
0
 public List <Empleado> GetAll()
 {
     return(empleadoRepository.GetAll().ToList());
 }
예제 #5
0
 public async Task <ActionResult <IEnumerable <EmpleadoModel> > > Get()
 {
     return(await _repository.GetAll());
 }