Exemple #1
0
        public IActionResult GetMayor(int id)
        {
            var mayor = _mayorRepository.GetMayor(id);

            if (mayor == null)
            {
                return(NotFound());
            }
            return(Ok(_mapper.Map <MayorDTO>(mayor)));
        }
Exemple #2
0
        public IActionResult GetMayor(int id)
        {
            var mayor = _mayorRepository.GetMayor(id);

            return(Ok(_mapper.Map <MayorDto>(mayor)));
        }