public void CadastrarDevolucaoEmprestimo(Emprestimo emprestimo) { CalculaMultaDiaria(emprestimo); if (emprestimo.Cliente.valorPagar > 0) { _LivroRepository.AtualizaQuantidadeLivroDevolvido(emprestimo.Livro.Id); emprestimo.Devolvido = true; base.Atualizar(emprestimo); _LivroRepository.Salvar(); } else { _LivroRepository.AtualizaQuantidadeLivroDevolvido(emprestimo.Livro.Id); emprestimo.Devolvido = true; _LivroRepository.Salvar(); } }