private bool TryCreateMapping(string entityName, MdmId newMapping, MappingUpdatedEvent updatedEvent) { var response = mappingService.CreateMapping(entityName, updatedEvent.EntityId, newMapping); if (!response.IsValid) { this.eventAggregator.Publish( new ErrorEvent(response.Fault != null ? response.Fault.Message : "Unknown Error")); return(false); } return(true); }