예제 #1
0
 public IActionResult Editar(int id)
 {
     try
     {
         var mesaDto = new MesaDto();
         if (id > 0)
         {
             mesaDto = cadastroMesaServico.BuscaMesaPorId(id);
         }
         return(View(mesaDto));
     }
     catch (Exception ex)
     {
         return(View("~/Views/Shared/Error.cshtml", ex));
     }
 }
예제 #2
0
        public IActionResult Alocar(int mesaId)
        {
            var mesa = cadastroMesaServico.BuscaMesaPorId(mesaId);

            return(View(mesa));
        }