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); }
public List <ImprumutDTO> GetLoanForBookId(int bookId) { return(ImprumutTransformer.fromModelListToDtoList(loanRepository.GetLoansByBookId(bookId))); }
public List <ImprumutDTO> GetLoansByUserId(int id) { return(ImprumutTransformer.fromModelListToDtoList(loanRepository.GetLoansByUserId(id))); }
public ImprumutDTO GetLoanForBookId(int bookId) { return(ImprumutTransformer.fromModelToDto(loanRepository.GetLoanByBookId(bookId))); }
public ImprumutDTO GetLoanByUserId(int id) { return(ImprumutTransformer.fromModelToDto(loanRepository.GetLoanByUserId(id))); }