Exemplo n.º 1
0
 public void AtualizarEmprestimo(ItemEmprestimoDao itemEmprestimoDao)
 {
     try
     {
         var itemEmprestadoEncontrado = HistoricoEmprestimos.Find(x => x.DbId == itemEmprestimoDao.DbId).FirstOrDefault();
         itemEmprestadoEncontrado = itemEmprestimoDao;
         HistoricoEmprestimos.Update(itemEmprestadoEncontrado);
     }
     catch (System.Exception)
     {
     }
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public void AdicionarEmprestimo(ItemEmprestimoDao itemEmprestimoDao)
 {
     HistoricoEmprestimos.Insert(itemEmprestimoDao);
 }
Exemplo n.º 4
0
 public void RemoverEmprestimo(ItemEmprestimoDao itemEmprestimoDao)
 {
     HistoricoEmprestimos.Delete(itemEmprestimoDao.DbId);
 }
 public PaginaDetalheEmprestimo(ItemEmprestimoDao telefoneEmprestimo)
 {
     InitializeComponent();
     BindingContext = new DetalhesEmprestimoViewModel();
     (BindingContext as DetalhesEmprestimoViewModel).EmprestimoSelecionado = telefoneEmprestimo;
 }