public async Task DeleteOrderAsync(int id) { Order orderToDelete = await _context.Orders.Include(o => o.OrderRooms).FirstOrDefaultAsync(o => o.Id == id); //csak igy torli a hozza tartozokat is _context.Remove(orderToDelete); await SaveChangesAsync(); }
public async Task DeletRoomAsync(Room r) { _context.Remove(r); await SaveChangesAsync(); }
public async Task DeletCostumerAsync(Costumer c) { _context.Remove(c); await SaveChangesAsync(); }