コード例 #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);
        }