Exemple #1
0
        public void Handle(CreateTaskCommand message)
        {
            User   assignedUser = _userRepository.GetByLoginName(message.AssignedTo);
            Ticket ticket       = _ticketRepository.GetByTicketNumber(message.TicketNumber);

            ticket.AddTask(message.Title, message.Description, assignedUser, (TaskStatus)message.Status);
            _ticketRepository.Update(ticket);
        }