BooksSample.Program.UpdateAsync C# (CSharp) Метод

UpdateAsync() приватный статический Метод

private static UpdateAsync ( BooksContext context, Book book ) : System.Threading.Tasks.Task
context BooksContext
book Book
Результат System.Threading.Tasks.Task
        private static async Task UpdateAsync(BooksContext context, Book book)
        {

            await context.SaveChangesAsync();
            WriteLine($"successfully written to the database: id {book.BookId} with title {book.Title}");
        }

Same methods

Program::UpdateAsync ( BooksContext context, Book book, string user ) : System.Threading.Tasks.Task