示例#1
0
        public VoidResult DeleteTicketItem(int id)
        {
            var deleteTicketItem = _ticketItemRepository.GetById(id);

            if (deleteTicketItem != null)
            {
                _ticketItemRepository.Delete(id);
                return(VoidResult.Ok());
            }
            else
            {
                return(VoidResult.CreateFaultedResult("The ticketItem can't be found."));
            }
            throw new NotImplementedException();
        }
示例#2
0
        public void deleteTicketItem(int id)
        {
            TicketItem item = ticketItemRepo.GetById(id);

            ticketItemRepo.Delete(item);
        }