public ImprumutDTO GetLoanByUserEmail(string email)
        {
            Cititor reader = readerRepository.GetReaderByEmail(email);

            if (reader != null)
            {
                int userId = reader.cititorId;
                return(ImprumutTransformer.fromModelToDto(loanRepository.GetLoanByUserId(userId)));
            }
            return(null);
        }
 public ImprumutDTO GetLoanForBookId(int bookId)
 {
     return(ImprumutTransformer.fromModelToDto(loanRepository.GetLoanByBookId(bookId)));
 }
 public ImprumutDTO GetLoanByUserId(int id)
 {
     return(ImprumutTransformer.fromModelToDto(loanRepository.GetLoanByUserId(id)));
 }