public void Register(RegisterTicketCategoryCommand command) { command.Validate(); if (AddNotifications(command)) { return; } TicketCategory ticketCategory = new TicketCategory(command.Name); _repository.Register(ticketCategory); Commit(); }
public void Register(RegisterTicketCategoryCommand command) { command.Validate(); if (AddNotifications(command)) { return; } TicketCategory ticketCategory = new TicketCategory(command.Name); _repository.Register(ticketCategory); Commit(); }