public IActionResult Devolver(JogoViewModel jogoViewModel)
 {
     try
     {
         _jogoAppService.Devolver(jogoViewModel);
         return(RedirectToAction("Lista"));
     }
     catch (DbUpdateConcurrencyException)
     {
         return(View(jogoViewModel));
     }
 }
예제 #2
0
        public IActionResult Devolver(Guid id)
        {
            bool _result = _service.Devolver(id);

            return(Ok(_result));
        }