public void Handle(Messages.Events.AccommodationLeadApproved message) { var accommodationLead = _repository.GetAccommodationLeadById(message.AccLeadId); accommodationLead.Approved = true; _repository.Save(accommodationLead); }
public void Handle(Messages.Events.AccommodationSupplierCreated message) { var accommodationSupplier = new AccommodationSupplier { AccommodationSupplierId = message.AccommodationSupplierId, Name = message.Name, Email = message.Email }; _repository.Save(accommodationSupplier); }
public void Handle(Messages.Events.UserCreated message) { var user = new User { UserId = message.UserID, Name = message.Name, Email = message.Email }; _repository.Save(user); }
public void Handle(Messages.Events.AuthenticationCreated message) { var authentication = new Authentication { AuthenticationId = message.AuthenticationID, Email = message.Email, HashedPassword = message.HashedPassword }; _repository.Save(authentication); }
public void Handle(Messages.Events.AccommodationLeadCreated message) { LogManager.GetLogger(this.GetType()).Info("Receieved " + message.GetType()); var accommodationLead = new AccommodationLead { AccommodationLeadId = message.AccommodationLeadID, Name = message.Name, Email = message.Email }; _repository.Save(accommodationLead); }