Пример #1
0
        public List <ImprumutDTO> GetLoansByUserEmail(string email)
        {
            Cititor reader = readerRepository.GetReaderByEmail(email);

            if (reader != null)
            {
                int userId = reader.cititorId;
                return(ImprumutTransformer.fromModelListToDtoList(loanRepository.GetLoansByUserId(userId)));
            }
            return(null);
        }
Пример #2
0
 public List <ImprumutDTO> GetLoanForBookId(int bookId)
 {
     return(ImprumutTransformer.fromModelListToDtoList(loanRepository.GetLoansByBookId(bookId)));
 }
Пример #3
0
 public List <ImprumutDTO> GetLoansByUserId(int id)
 {
     return(ImprumutTransformer.fromModelListToDtoList(loanRepository.GetLoansByUserId(id)));
 }
Пример #4
0
 public ImprumutDTO GetLoanForBookId(int bookId)
 {
     return(ImprumutTransformer.fromModelToDto(loanRepository.GetLoanByBookId(bookId)));
 }
Пример #5
0
 public ImprumutDTO GetLoanByUserId(int id)
 {
     return(ImprumutTransformer.fromModelToDto(loanRepository.GetLoanByUserId(id)));
 }