Beispiel #1
0
        public ActionResult <List <RestauranteDTO> > Get()
        {
            var restaurantes = _restauranteService.ObtenerRestaurantes();
            var model        = new List <RestauranteDTO>();

            _mapper.Map(restaurantes, model);

            return(model);
        }
Beispiel #2
0
        public IActionResult Index()
        {
            var restaurantes = _restauranteService.ObtenerRestaurantes();

            return(View(restaurantes));
        }