Ejemplo n.º 1
0
        public bool Execute()
        {
            var comments = ticketCommentRepository.GetByTicketId(Id);

            comments.ForEach(comment => ticketCommentRepository.Delete(comment.Id));
            var attr = ticketAttributionRepository.GetFromTicket(Id);

            if (attr != null)
            {
                ticketAttributionRepository.Delete(attr.Id);
            }
            var ware = ticketWareRepository.GetByTicketId(Id);

            if (ware != null)
            {
                ticketWareRepository.Delete(Id);
            }
            return(ticketRepository.Delete(Id));
        }
Ejemplo n.º 2
0
 public bool Execute()
 {
     return(ticketWareRepository.Delete(Id));
 }