public async Task AddOrderedBlockAsync(OrderedBlock orderedBlock) { _context.OrderedBlock.Add(orderedBlock); await _context.SaveChangesAsync(); }
public async Task UpdateOrderedBlockAsync(OrderedBlock orderedBlock) { _context.Entry(orderedBlock).State = EntityState.Modified; await _context.SaveChangesAsync(); }