示例#1
0
        public string AllRefundPerson(int personID)
        {
            var    person = _context.Persons.Find(personID);
            string json   = JsonSerializer.Serialize(LibraryCardsDTO.ToListLibraryCard(_context.LibraryCards.Include(p => p.Book).Include(p => p.Book.Genre).Where(p => p.Person == person).ToList <LibraryCards>()));

            return(json);
        }
示例#2
0
        public string AllRefund()
        {
            string json = JsonSerializer.Serialize(LibraryCardsDTO.ToListLibraryCard(_context.LibraryCards.Include(P => P.Person).Include(p => p.Book).ToList <LibraryCards>()));

            return(json);
        }