Esempio n. 1
0
        public void Register(RegisterTicketCategoryCommand command)
        {
            command.Validate();

            if (AddNotifications(command))
            {
                return;
            }

            TicketCategory ticketCategory = new TicketCategory(command.Name);

            _repository.Register(ticketCategory);

            Commit();
        }