public void Handle(Messages.Events.AccommodationLeadApproved message) { var accommodationLead = _repository.GetAccommodationLeadById(message.AccLeadId); accommodationLead.Approved = true; _repository.Save(accommodationLead); }
// GET api/accommodationleads/5 public AccommodationLead Get(Guid id) { return(_contactQueryRepository.GetAccommodationLeadById(id)); }