public void DeleteOrderTicket(int id) { List <TicketOrder> deleteOrderTickets = GetTicketOrderByOrderId(id).Result; foreach (var deleteOrderTicket in deleteOrderTickets) { _context.Remove(deleteOrderTicket); } }
public async void DeleteKadett(int id) { var deleteKadett = await GetKadettById(id); _context.Remove(deleteKadett); }
public async void DeleteClient(int id) { var deleteClients = await GetClientById(id); _context.Remove(deleteClients); }