public async Task InsertIntoDatabaseAsync(Picture pictureEntity) { await dbSet.AddAsync(pictureEntity); // Adds the image to the database await context.SaveChangesAsync(); }
public async Task SaveAsync() { await context.SaveChangesAsync(); }