示例#1
0
 public void FinalizarEmprestimo(int codigo)
 {
     try
     {
         if (codigo > 0)
         {
             var emprestimo = _emprestimoService.RecuperarPorId(codigo);
             if (emprestimo != null)
             {
                 FinalizarSituacaoEmprestimo(emprestimo);
                 AtualizarSituacaoEmprestimoJogo(emprestimo.JogoId, false);
             }
         }
     }
     catch (Exception ex)
     {
         throw new Exception(string.Concat(Mensagem.ERRO_ACESSO_DADOS, ex));
     }
 }