Esempio n. 1
0
        public List <AbonentInLibraryDTO> AbonentList(int libId)
        {
            StoredProcedure procedure = new StoredProcedure(_context);

            return(procedure.Abonents().Where(c => c.LibraryId == libId).Select(c => (AbonentInLibraryDTO)c).ToList());
        }
Esempio n. 2
0
        public List <AbonentInLibraryDTO> AbonentList(int readerId)
        {
            StoredProcedure procedure = new StoredProcedure(_context);

            return(procedure.Abonents().Where(c => c.ReaderId == readerId && c.AbonentStatus == 3).Select(c => (AbonentInLibraryDTO)c).ToList());
        }