Пример #1
0
        public async Task CreateAsync(Borrowing borrowing)
        {
            await _context.AddAsync(borrowing);

            await _context.SaveChangesAsync();
        }
Пример #2
0
        public async Task CreateAsync(Book book)
        {
            await _context.AddAsync(book);

            await _context.SaveChangesAsync();
        }