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(); }
public void deleteTicketItem(int id) { TicketItem item = ticketItemRepo.GetById(id); ticketItemRepo.Delete(item); }