public List <AbonentInLibraryDTO> AbonentList(int libId) { StoredProcedure procedure = new StoredProcedure(_context); return(procedure.Abonents().Where(c => c.LibraryId == libId).Select(c => (AbonentInLibraryDTO)c).ToList()); }
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()); }