private void UpdateTicketWithImageAndPriority(Entities.Ticket ticket, Entities.Image image)
        {
            var existingTicket = _repository.GetBy(ticket.Id);

            existingTicket.AddImage(image);
            _repository.UpdatePriority(existingTicket);
            _repository.AttachImage(ticket, image);
        }
Exemple #2
0
        private void UpdateTicketWithImageAndPriority(Entities.Ticket ticket, Entities.Video video)
        {
            var existingTicket = _repository.GetBy(ticket.Id);

            existingTicket.AddVideo(video);
            _repository.UpdatePriority(existingTicket);
            _repository.AttachVideo(ticket, video);
        }