public ICommandResult Handle(CreateCollegeCommand command) { var name = new Name(command.FirstName, command.LastName); var document = new Document(command.Document); var email = new Email(command.Email); var college = new College(name, document, email, command.Phone, command.Image); AddNotifications(name.Notifications); AddNotifications(document.Notifications); AddNotifications(email.Notifications); AddNotifications(college.Notifications); if (Invalid) { return(new CommandResult(false, "Erro ao cadastrar faculdade", Notifications)); } _repository.Create(college); _service.Send("*****@*****.**", email.Address, "Bem-vindo", "Seja bem-vindo ao ClassRoom Space"); return(new CommandResult(true, "Faculdade cadastrada com sucesso", null)); }