示例#1
0
 public IActionResult IndexItem()
 {
     try
     {
         var itens = pedidoServico.ListaTodosItemPedido();
         return(View(itens));
         //var itens = pedidoServico.BuscarItemPorId(pedidoId).ItensPediddos;
         //return View(new ItemPedidoListDto { ItensPedidos = itens, PedidoId = pedidoId });
     }
     catch (Exception ex)
     {
         return(View("~/Views/Shared/Error.cshtml", ex));
     }
 }
示例#2
0
        public IActionResult PedidoAberto()
        {
            var itens = pedidoServico.ListaTodosItemPedido();

            return(View(itens));
        }