예제 #1
0
 public void RealizarEmprestimo(int id, DateTime data, ILivroDado l, IPessoaDado p)
 {
     Id             = id;
     DataEmprestimo = data;
     Livro          = l;
     Pessoa         = p;
 }
예제 #2
0
        public IEmprestimoDado Emprestar(ILivroDado livro, IPessoaDado pessoa, IEmprestimoDado emprestimo, List <IEmprestimoDado> listaEmprestimo)
        {
            DateTime dataEmprestimo = DateTime.Now;

            emprestimo.RealizarEmprestimo(listaEmprestimo.Count, dataEmprestimo, livro, pessoa);
            return(emprestimo);
        }
예제 #3
0
 public IEmprestimoDado BuscarLivroEmprestimo(ILivroDado livro, List <IEmprestimoDado> emprestimos)
 {
     return(emprestimos.Where(x => x.GetLivro() == livro).FirstOrDefault());
 }
예제 #4
0
 public IEmprestimoDado BuscarLivroEmprestimo(IEmprestimoDado emprestimo, ILivroDado livro, List <IEmprestimoDado> emprestimos)
 {
     return(emprestimo.BuscarLivroEmprestimo(livro, emprestimos));
 }
예제 #5
0
 public ILivroDado BuscarLivro(ILivroDado livro, int tombo, List <ILivroDado> listLivro)
 {
     return(livro.BuscarLivro(tombo, listLivro));
 }