public void AtualizarEmprestimo(ItemEmprestimoDao itemEmprestimoDao) { try { var itemEmprestadoEncontrado = HistoricoEmprestimos.Find(x => x.DbId == itemEmprestimoDao.DbId).FirstOrDefault(); itemEmprestadoEncontrado = itemEmprestimoDao; HistoricoEmprestimos.Update(itemEmprestadoEncontrado); } catch (System.Exception) { } }
public AlunoController(AlunoDao alunoDao, LivroDAO livroDAO, ItemEmprestimoDao itemEmprestimoDao, FuncionarioDAO funcionarioDao, SignInManager <FuncionarioLogado> signInManager, UserManager <FuncionarioLogado> userManager) { _userManager = userManager; _signInManager = signInManager; _livroDAO = livroDAO; _alunoDao = alunoDao; _itemEmprestimoDao = itemEmprestimoDao; _funcionarioDAO = funcionarioDao; }
public void AdicionarEmprestimo(ItemEmprestimoDao itemEmprestimoDao) { HistoricoEmprestimos.Insert(itemEmprestimoDao); }
public void RemoverEmprestimo(ItemEmprestimoDao itemEmprestimoDao) { HistoricoEmprestimos.Delete(itemEmprestimoDao.DbId); }
public PaginaDetalheEmprestimo(ItemEmprestimoDao telefoneEmprestimo) { InitializeComponent(); BindingContext = new DetalhesEmprestimoViewModel(); (BindingContext as DetalhesEmprestimoViewModel).EmprestimoSelecionado = telefoneEmprestimo; }