Пример #1
0
        public async Task AddLogin(Logins login)
        {
            await _dbContext.AddAsync(login);

            await _dbContext.SaveChangesAsync();
        }
Пример #2
0
        public async Task AddBook(Library book)
        {
            await _dbContext.AddAsync(book);

            await _dbContext.SaveChangesAsync();
        }