public void DeleteOrderTicket(int id)
        {
            List <TicketOrder> deleteOrderTickets = GetTicketOrderByOrderId(id).Result;

            foreach (var deleteOrderTicket in deleteOrderTickets)
            {
                _context.Remove(deleteOrderTicket);
            }
        }
Exemple #2
0
        public async void DeleteKadett(int id)
        {
            var deleteKadett = await GetKadettById(id);

            _context.Remove(deleteKadett);
        }
Exemple #3
0
        public async void DeleteClient(int id)
        {
            var deleteClients = await GetClientById(id);

            _context.Remove(deleteClients);
        }