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

            _mapper.Map(restaurantes, model);

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

            return(View(restaurantes));
        }