Example #1
0
        public async Task InsertIntoDatabaseAsync(Picture pictureEntity)
        {
            await dbSet.AddAsync(pictureEntity); // Adds the image to the database

            await context.SaveChangesAsync();
        }
Example #2
0
 public async Task SaveAsync()
 {
     await context.SaveChangesAsync();
 }