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