Ejemplo n.º 1
0
 public IActionResult Index()
 {
     return(View(new CadastrarEditarPratosResquestViewModel
     {
         ItemLancheViewModel = _restauranteApplication.Listar(string.Empty).Select(x => new ItemRestauranteViewModel
         {
             IdRestaurante = x.IdRestaurante,
             NomeRestaurante = x.NomeRestaurante
         }).ToList()
     }));
 }
Ejemplo n.º 2
0
 public PartialViewResult ListarRestaurantes(string nome)
 {
     return(PartialView("_GridRestaurante", _restauranteApplication.Listar(nome).ToList()));
 }