Ejemplo n.º 1
0
 public async Task AddOrderedBlockAsync(OrderedBlock orderedBlock)
 {
     _context.OrderedBlock.Add(orderedBlock);
     await _context.SaveChangesAsync();
 }
Ejemplo n.º 2
0
 public async Task UpdateOrderedBlockAsync(OrderedBlock orderedBlock)
 {
     _context.Entry(orderedBlock).State = EntityState.Modified;
     await _context.SaveChangesAsync();
 }